filter_torrents_by_default_rule方法 添加参数和返回值声明
This commit is contained in:
parent
219690afc0
commit
d98376b490
@ -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:
|
||||||
# 取默认过滤规则
|
# 取默认过滤规则
|
||||||
|
Loading…
x
Reference in New Issue
Block a user