Skip to content

Commit

Permalink
feat RSS增加过滤规则开关
Browse files Browse the repository at this point in the history
  • Loading branch information
jxxghp committed Aug 12, 2023
1 parent c7a5c5f commit 153d22d
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions app/chain/rss.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,13 +186,14 @@ def refresh(self, rssid: int = None, manual: bool = False):
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)
Expand Down

0 comments on commit 153d22d

Please sign in to comment.