filter_torrents_by_default_rule方法 添加参数和返回值声明

This commit is contained in:
mayun110 2023-09-22 09:45:23 +08:00
parent 219690afc0
commit d98376b490

View File

@ -311,7 +311,10 @@ class SearchChain(ChainBase):
# 返回 # 返回
return results 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 = [] new_torrents = []
for torrent in torrents: for torrent in torrents:
# 取默认过滤规则 # 取默认过滤规则