fix #406 支持QB分类自动管理模式

This commit is contained in:
jxxghp
2023-09-03 07:56:20 +08:00
parent 31b460f89f
commit 0050a96faf
7 changed files with 28 additions and 10 deletions

View File

@ -37,13 +37,14 @@ class TransmissionModule(_ModuleBase):
self.transmission = Transmission()
def download(self, torrent_path: Path, download_dir: Path, cookie: str,
episodes: Set[int] = None) -> Optional[Tuple[Optional[str], str]]:
episodes: Set[int] = None, category: str = None) -> Optional[Tuple[Optional[str], str]]:
"""
根据种子文件,选择并添加下载任务
:param torrent_path: 种子文件地址
:param download_dir: 下载目录
:param cookie: cookie
:param episodes: 需要下载的集数
:param category: 分类TR中未使用
:return: 种子Hash
"""
# 如果要选择文件则先暂停