From 153d22d73efa32c848ba866953da23b19850851c Mon Sep 17 00:00:00 2001 From: jxxghp Date: Sat, 12 Aug 2023 18:42:29 +0800 Subject: [PATCH] =?UTF-8?q?feat=20RSS=E5=A2=9E=E5=8A=A0=E8=BF=87=E6=BB=A4?= =?UTF-8?q?=E8=A7=84=E5=88=99=E5=BC=80=E5=85=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/chain/rss.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/app/chain/rss.py b/app/chain/rss.py index 67f7c4f7..a8470e8e 100644 --- a/app/chain/rss.py +++ b/app/chain/rss.py @@ -186,13 +186,14 @@ class RssChain(ChainBase): pubdate=time.strftime("%Y-%m-%d %H:%M:%S", item.get("pubdate")) if item.get("pubdate") else None, ) # 过滤种子 - result = self.filter_torrents( - rule_string=filter_rule, - torrent_list=[torrentinfo] - ) - if not result: - logger.info(f"{rss_task.name} 不匹配过滤规则") - continue + if rss_task.filter: + result = self.filter_torrents( + rule_string=filter_rule, + torrent_list=[torrentinfo] + ) + if not result: + logger.info(f"{rss_task.name} 不匹配过滤规则") + continue # 更新已处理数据 processed_data['titles'].append(item.get("title")) processed_data['season_episodes'].append(meta.season_episode)