diff --git a/app/helper/sites.cp310-win_amd64.pyd b/app/helper/sites.cp310-win_amd64.pyd index f537f9c4..44cefd8a 100644 Binary files a/app/helper/sites.cp310-win_amd64.pyd and b/app/helper/sites.cp310-win_amd64.pyd differ diff --git a/app/helper/sites.cpython-310-darwin.so b/app/helper/sites.cpython-310-darwin.so index 65ae508f..933bf4bc 100755 Binary files a/app/helper/sites.cpython-310-darwin.so and b/app/helper/sites.cpython-310-darwin.so differ diff --git a/app/helper/sites.cpython-310-x86_64-linux-gnu.so b/app/helper/sites.cpython-310-x86_64-linux-gnu.so index 7d3aff2d..0a6c53ff 100644 Binary files a/app/helper/sites.cpython-310-x86_64-linux-gnu.so and b/app/helper/sites.cpython-310-x86_64-linux-gnu.so differ diff --git a/app/modules/qbittorrent/__init__.py b/app/modules/qbittorrent/__init__.py index 1f247ae1..35014afd 100644 --- a/app/modules/qbittorrent/__init__.py +++ b/app/modules/qbittorrent/__init__.py @@ -35,14 +35,16 @@ class QbittorrentModule(_ModuleBase): # 生成随机Tag tag = StringUtils.generate_random_str(10) if settings.TORRENT_TAG: - tag = [tag, settings.TORRENT_TAG] + tags = [tag, settings.TORRENT_TAG] + else: + tags = [tag] # 如果要选择文件则先暂停 is_paused = True if episodes else False # 添加任务 state = self.qbittorrent.add_torrent(content=torrent_path.read_bytes(), download_dir=settings.DOWNLOAD_PATH, is_paused=is_paused, - tag=tag, + tag=tags, cookie=cookie) if not state: return None, f"添加种子任务失败:{torrent_path}" diff --git a/app/utils/system.py b/app/utils/system.py index 0ce04795..9b4ae625 100644 --- a/app/utils/system.py +++ b/app/utils/system.py @@ -119,4 +119,3 @@ class SystemUtils: total_size += path.stat().st_size return total_size -