diff --git a/app/modules/qbittorrent/__init__.py b/app/modules/qbittorrent/__init__.py index 121a9b74..32ac3403 100644 --- a/app/modules/qbittorrent/__init__.py +++ b/app/modules/qbittorrent/__init__.py @@ -211,7 +211,7 @@ class QbittorrentModule(_ModuleBase): :param hashs: 种子Hash :return: bool """ - return self.qbittorrent.start_torrents(ids=hashs) + return self.qbittorrent.stop_torrents(ids=hashs) def torrent_files(self, tid: str) -> Optional[TorrentFilesList]: """ diff --git a/app/plugins/mediasyncdel/__init__.py b/app/plugins/mediasyncdel/__init__.py index 0ca45f4d..5127d704 100644 --- a/app/plugins/mediasyncdel/__init__.py +++ b/app/plugins/mediasyncdel/__init__.py @@ -969,6 +969,13 @@ class MediaSyncDel(_PluginBase): self.chain.stop_torrents(torrent_hash) handle_cnt += 1 + logger.info(f"暂停转种后下载任务:{download} - {download_id}") + # 删除转种后下载任务 + if download == "transmission": + self.tr.stop_torrents(ids=download_id) + else: + self.qb.stop_torrents(ids=download_id) + handle_cnt += 1 else: # 未转种de情况 if delete_flag: