From e58911397afda0cfb930b51bd78b1df3f4e43bfb Mon Sep 17 00:00:00 2001 From: thsrite Date: Fri, 25 Oct 2024 19:06:32 +0800 Subject: [PATCH] fix dc3240e9 --- app/modules/filter/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/modules/filter/__init__.py b/app/modules/filter/__init__.py index 77280707..ebef0469 100644 --- a/app/modules/filter/__init__.py +++ b/app/modules/filter/__init__.py @@ -359,7 +359,7 @@ class FilterModule(_ModuleBase): seeders = self.rule_set[rule_name].get("seeders") # FREE规则 downloadvolumefactor = self.rule_set[rule_name].get("downloadvolumefactor") - if not any(re.search(r"%s" % include, content, re.IGNORECASE) for include in includes): + if includes and not any(re.search(r"%s" % include, content, re.IGNORECASE) for include in includes): # 未发现任何包含项 logger.debug(f"种子 {torrent.site_name} - {torrent.title} 不包含任何项 {includes}") return False