From 805c7d2701c23f34e12f52810af48d91ad97330f Mon Sep 17 00:00:00 2001 From: jxxghp Date: Sun, 28 Apr 2024 09:19:09 +0800 Subject: [PATCH] fix torrent filter log --- app/helper/torrent.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/helper/torrent.py b/app/helper/torrent.py index cfa82121..526bc012 100644 --- a/app/helper/torrent.py +++ b/app/helper/torrent.py @@ -341,13 +341,13 @@ class TorrentHelper(metaclass=Singleton): include = filter_rule.get("include") if include: if not re.search(r"%s" % include, content, re.I): - logger.info(f"{torrent_info.title} 不匹配包含规则 {include}") + logger.info(f"{content} 不匹配包含规则 {include}") return False # 排除 exclude = filter_rule.get("exclude") if exclude: if re.search(r"%s" % exclude, content, re.I): - logger.info(f"{torrent_info.title} 匹配排除规则 {exclude}") + logger.info(f"{content} 匹配排除规则 {exclude}") return False # 质量 quality = filter_rule.get("quality")