From 5b1d111a97c0893b2a4710931c367fe77658f212 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Wed, 25 Sep 2024 22:35:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20=5F=5Finit=5F=5F.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/modules/filter/__init__.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/modules/filter/__init__.py b/app/modules/filter/__init__.py index 0f29508b..e0fbc0d2 100644 --- a/app/modules/filter/__init__.py +++ b/app/modules/filter/__init__.py @@ -336,28 +336,28 @@ class FilterModule(_ModuleBase): for include in includes: if not re.search(r"%s" % include, content, re.IGNORECASE): # 未发现包含项 - logger.debug(f"种子 {torrent.site_name} - {torrent.title} 不包含 {include},匹配失败") + logger.debug(f"种子 {torrent.site_name} - {torrent.title} 不包含 {include}") return False for exclude in excludes: if re.search(r"%s" % exclude, content, re.IGNORECASE): # 发现排除项 - logger.debug(f"种子 {torrent.site_name} - {torrent.title} 包含 {exclude},匹配失败") + logger.debug(f"种子 {torrent.site_name} - {torrent.title} 包含 {exclude}") return False if size_range: if not self.__match_size(torrent, size_range): # 大小范围不匹配 logger.debug(f"种子 {torrent.site_name} - {torrent.title} 大小 " - f"{StringUtils.str_filesize(torrent.size)} 不在范围 {size_range}MB,匹配失败") + f"{StringUtils.str_filesize(torrent.size)} 不在范围 {size_range}MB") return False if seeders: if torrent.seeders < int(seeders): # 做种人数不匹配 - logger.debug(f"种子 {torrent.site_name} - {torrent.title} 做种人数 {torrent.seeders} 小于 {seeders},匹配失败") + logger.debug(f"种子 {torrent.site_name} - {torrent.title} 做种人数 {torrent.seeders} 小于 {seeders}") return False if downloadvolumefactor is not None: if torrent.downloadvolumefactor != downloadvolumefactor: # FREE规则不匹配 - logger.debug(f"种子 {torrent.site_name} - {torrent.title} FREE值 {torrent.downloadvolumefactor} 不是 {downloadvolumefactor},匹配失败") + logger.debug(f"种子 {torrent.site_name} - {torrent.title} FREE值 {torrent.downloadvolumefactor} 不是 {downloadvolumefactor}") return False return True