This commit is contained in:
jxxghp
2023-06-06 07:15:17 +08:00
commit 4d06f86e62
217 changed files with 13959 additions and 0 deletions

View File

@ -0,0 +1,20 @@
from typing import List, Tuple, Union
from app.core import TorrentInfo
from app.modules import _ModuleBase
class FilterModule(_ModuleBase):
def init_module(self) -> None:
pass
def init_setting(self) -> Tuple[str, Union[str, bool]]:
return "FILTER_RULE", True
def filter_torrents(self, torrent_list: List[TorrentInfo]) -> List[TorrentInfo]:
"""
TODO 过滤资源
:param torrent_list: 资源列表
:return: 过滤后的资源列表注意如果返回None有可能是没有对应的处理模块应无视结果
"""
pass