This commit is contained in:
jxxghp 2024-04-09 18:47:25 +08:00
parent 45bf84d448
commit 27cb968a18

View File

@ -262,14 +262,14 @@ class SearchChain(ChainBase):
logger.warn(f'{keyword or mediainfo.title} 没有符合优先级规则的资源') logger.warn(f'{keyword or mediainfo.title} 没有符合优先级规则的资源')
return [] return []
# 使用过滤规则再次过滤 # 使用过滤规则再次过滤
if filter_rule: if _match_torrents:
logger.info(f'开始过滤规则过滤,当前规则:{filter_rule} ...') logger.info(f'开始过滤规则过滤,当前规则:{filter_rule} ...')
_match_torrents = self.filter_torrents_by_rule(torrents=_match_torrents, _match_torrents = self.filter_torrents_by_rule(torrents=_match_torrents,
mediainfo=mediainfo, mediainfo=mediainfo,
filter_rule=filter_rule) filter_rule=filter_rule)
if not _match_torrents: if not _match_torrents:
logger.warn(f'{keyword or mediainfo.title} 没有符合过滤规则的资源') logger.warn(f'{keyword or mediainfo.title} 没有符合过滤规则的资源')
return [] return []
# 去掉mediainfo中多余的数据 # 去掉mediainfo中多余的数据
mediainfo.clear() mediainfo.clear()
# 组装上下文 # 组装上下文