From d98376b4901d1c72a4f4b7149d2132ed0414547c Mon Sep 17 00:00:00 2001 From: mayun110 Date: Fri, 22 Sep 2023 09:45:23 +0800 Subject: [PATCH] =?UTF-8?q?filter=5Ftorrents=5Fby=5Fdefault=5Frule?= =?UTF-8?q?=E6=96=B9=E6=B3=95=20=E6=B7=BB=E5=8A=A0=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E5=92=8C=E8=BF=94=E5=9B=9E=E5=80=BC=E5=A3=B0=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/chain/search.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/chain/search.py b/app/chain/search.py index 0f1c216f..6d1fe405 100644 --- a/app/chain/search.py +++ b/app/chain/search.py @@ -311,7 +311,10 @@ class SearchChain(ChainBase): # 返回 return results - def filter_torrents_by_default_rule(self, torrents, keyword, mediainfo): + def filter_torrents_by_default_rule(self, + torrents: List[TorrentInfo], + keyword: str, + mediainfo: MediaInfo) -> List[TorrentInfo]: new_torrents = [] for torrent in torrents: # 取默认过滤规则