From 0dd5be6fddaa2c101175034897e18e718aeb026a Mon Sep 17 00:00:00 2001 From: bobokun Date: Sun, 7 Sep 2025 15:32:10 -0400 Subject: [PATCH] bug(category): fix bug for ignoring tags when forcing auto TMM when updating category. --- VERSION | 2 +- modules/core/category.py | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index ce935cf..c1dcb17 100755 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -4.6.1-develop19 +4.6.1-develop20 diff --git a/modules/core/category.py b/modules/core/category.py index ba67601..2d51411 100644 --- a/modules/core/category.py +++ b/modules/core/category.py @@ -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