fix filter

This commit is contained in:
jxxghp
2023-06-10 20:32:37 +08:00
parent f1006676c7
commit be9c6b0571
7 changed files with 70 additions and 16 deletions

View File

@ -1,6 +1,6 @@
from abc import abstractmethod, ABCMeta
from pathlib import Path
from typing import Optional, List, Tuple, Union, Set, Any
from typing import Optional, List, Tuple, Union, Set, Any, Dict
from ruamel.yaml import CommentedMap
@ -116,10 +116,12 @@ class _ModuleBase(metaclass=ABCMeta):
"""
pass
def filter_torrents(self, torrent_list: List[TorrentInfo]) -> List[TorrentInfo]:
def filter_torrents(self, torrent_list: List[TorrentInfo],
season_episodes: Dict[int, dict] = None) -> List[TorrentInfo]:
"""
过滤资源
:param torrent_list: 资源列表
:param season_episodes: 过滤的剧集信息
:return: 过滤后的资源列表注意如果返回None有可能是没有对应的处理模块应无视结果
"""
pass