feat 字幕下载作为可配置项

This commit is contained in:
yubanmeiqin9048
2023-08-11 11:21:15 +08:00
parent e505f2d2c2
commit 345abcc0a0
3 changed files with 7 additions and 2 deletions

View File

@ -250,8 +250,10 @@ class ChainBase(metaclass=ABCMeta):
:param download_dir: 下载目录
:return: None该方法可被多个模块同时处理
"""
return self.run_module("download_added", context=context, torrent_path=torrent_path,
download_dir=download_dir)
if settings.DOWNLOAD_SUBTITLE:
return self.run_module("download_added", context=context, torrent_path=torrent_path,
download_dir=download_dir)
return None
def list_torrents(self, status: TorrentStatus = None,
hashs: Union[list, str] = None) -> Optional[List[Union[TransferTorrent, DownloadingTorrent]]]: