fix
This commit is contained in:
@ -307,13 +307,13 @@ class ChainBase(metaclass=ABCMeta):
|
||||
"""
|
||||
return self.run_module("stop_torrents", hashs=hashs)
|
||||
|
||||
def get_torrent_files(self, tid: str) -> Optional[Tuple[Optional[str], str]]:
|
||||
def torrent_files(self, tid: str) -> Optional[Tuple[Optional[str], str]]:
|
||||
"""
|
||||
根据种子文件,选择并添加下载任务
|
||||
:param tid: 种子Hash
|
||||
:return: 种子文件
|
||||
"""
|
||||
return self.run_module("get_files", tid=tid)
|
||||
return self.run_module("torrent_files", tid=tid)
|
||||
|
||||
def media_exists(self, mediainfo: MediaInfo, itemid: str = None) -> Optional[ExistMediaInfo]:
|
||||
"""
|
||||
|
@ -631,7 +631,7 @@ class DownloadChain(ChainBase):
|
||||
获取种子文件清单
|
||||
"""
|
||||
try:
|
||||
return self.get_torrent_files(tid=tid)
|
||||
return self.torrent_files(tid=tid)
|
||||
except Exception as err:
|
||||
logger.error(f"获取种子文件列表出错:{err}")
|
||||
return []
|
||||
return None
|
||||
|
Reference in New Issue
Block a user