mirror of
https://github.com/StuffAnThings/qbit_manage.git
synced 2025-10-08 21:06:28 +08:00
bug(category): fix bug for ignoring tags when forcing auto TMM when updating category.
This commit is contained in:
parent
479eabec0d
commit
0dd5be6fdd
2 changed files with 6 additions and 2 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
|||
4.6.1-develop19
|
||||
4.6.1-develop20
|
||||
|
|
|
@ -98,7 +98,11 @@ class Category:
|
|||
def set_category_with_creation():
|
||||
try:
|
||||
torrent.set_category(category=new_cat)
|
||||
if torrent.auto_tmm is False and self.config.settings["force_auto_tmm"]:
|
||||
if (
|
||||
torrent.auto_tmm is False
|
||||
and self.config.settings["force_auto_tmm"]
|
||||
and not any(tag in torrent.tags for tag in self.config.settings.get("force_auto_tmm_ignore_tags", []))
|
||||
):
|
||||
torrent.set_auto_management(True)
|
||||
except Exception as e:
|
||||
# Check if it's a category creation issue
|
||||
|
|
Loading…
Add table
Reference in a new issue