From f7164450d0a693af83aafb748a6eca78d70dafcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=99=AF=E5=A4=A7=E4=BE=A0?= Date: Fri, 22 Nov 2024 13:44:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=B0=86=E8=AE=A2=E9=98=85=E8=A7=84?= =?UTF-8?q?=E5=88=99=E8=BF=87=E6=BB=A4=E5=89=8D=E7=BD=AE=EF=BC=8C=E9=81=BF?= =?UTF-8?q?=E5=85=8D=E5=9B=A0imdbid=E5=8C=B9=E9=85=8D=E8=80=8C=E8=B7=B3?= =?UTF-8?q?=E8=BF=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/chain/search.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/app/chain/search.py b/app/chain/search.py index c2c4edee..8a026b97 100644 --- a/app/chain/search.py +++ b/app/chain/search.py @@ -221,6 +221,12 @@ class SearchChain(ChainBase): key=ProgressKey.Search) if not torrent.title: continue + + # 匹配订阅附加参数 + if filter_params and not self.torrenthelper.filter_torrent(torrent_info=torrent, + filter_params=filter_params): + continue + # 识别元数据 torrent_meta = MetaInfo(title=torrent.title, subtitle=torrent.description, custom_words=custom_words) @@ -234,11 +240,6 @@ class SearchChain(ChainBase): _match_torrents.append((torrent, torrent_meta)) continue - # 匹配订阅附加参数 - if filter_params and not self.torrenthelper.filter_torrent(torrent_info=torrent, - filter_params=filter_params): - continue - # 比对种子 if self.torrenthelper.match_torrent(mediainfo=mediainfo, torrent_meta=torrent_meta,