From a07afba245582371a9c917191cdf21d8095c6d9d Mon Sep 17 00:00:00 2001 From: jxxghp Date: Sat, 10 Jun 2023 20:49:36 +0800 Subject: [PATCH] fix filter --- app/modules/filter/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/modules/filter/__init__.py b/app/modules/filter/__init__.py index 9d6b67ab..a6a9231d 100644 --- a/app/modules/filter/__init__.py +++ b/app/modules/filter/__init__.py @@ -117,9 +117,9 @@ class FilterModule(_ModuleBase): # 整季按匹配处理 return True if len(torrent_episodes) == 1 \ - and not set(torrent_seasons).issubset(set(season_episodes.get(torrent_seasons[0]))): - # 单季不是子集的种子不要 - logger.info(f"种子 {torrent.title} 集 {torrent_episodes} 不是需要的集") + and not set(torrent_seasons).intersection(set(season_episodes.get(torrent_seasons[0]))): + # 单季集没有交集的不要 + logger.info(f"种子 {torrent.title} 集 {torrent_episodes} 没有需要的集") return False return True