bug(category): fix bug for ignoring tags when forcing auto TMM when updating category.

This commit is contained in:
bobokun 2025-09-07 15:32:10 -04:00
parent 479eabec0d
commit 0dd5be6fdd
No known key found for this signature in database
GPG key ID: B73932169607D927
2 changed files with 6 additions and 2 deletions

View file

@ -1 +1 @@
4.6.1-develop19
4.6.1-develop20

View file

@ -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