feat 同步删除处理转种辅种、种子部分删除自动暂停

This commit is contained in:
thsrite
2023-08-12 22:16:53 +08:00
parent c2ae88a448
commit 7b980f2a07
6 changed files with 206 additions and 15 deletions

View File

@ -307,6 +307,14 @@ class ChainBase(metaclass=ABCMeta):
"""
return self.run_module("stop_torrents", hashs=hashs)
def get_torrent_files(self, tid: str) -> Optional[Tuple[Optional[str], str]]:
"""
根据种子文件,选择并添加下载任务
:param tid: 种子Hash
:return: 种子文件
"""
return self.run_module("get_files", tid=tid)
def media_exists(self, mediainfo: MediaInfo, itemid: str = None) -> Optional[ExistMediaInfo]:
"""
判断媒体文件是否存在