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

@ -235,7 +235,7 @@ class ChainBase(metaclass=ABCMeta):
torrent_list=torrent_list, season_episodes=season_episodes)
def download(self, torrent_path: Path, download_dir: Path, cookie: str,
episodes: Set[int] = None,
episodes: Set[int] = None, category: str = None
) -> Optional[Tuple[Optional[str], str]]:
"""
根据种子文件,选择并添加下载任务
@ -243,10 +243,11 @@ class ChainBase(metaclass=ABCMeta):
:param download_dir: 下载目录
:param cookie: cookie
:param episodes: 需要下载的集数
:param category: 种子分类
:return: 种子Hash错误信息
"""
return self.run_module("download", torrent_path=torrent_path, download_dir=download_dir,
cookie=cookie, episodes=episodes, )
cookie=cookie, episodes=episodes, category=category)
def download_added(self, context: Context, torrent_path: Path, download_dir: Path) -> None:
"""