This commit is contained in:
thsrite 2023-10-17 16:27:29 +08:00
parent 3aac617f35
commit e018f77e37
2 changed files with 8 additions and 1 deletions

View File

@ -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]:
"""

View File

@ -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: