mirror of
https://github.com/d0zingcat/MoviePilot-Plugins.git
synced 2026-06-02 23:16:50 +00:00
Revert 辅种结束后,一起开始所有辅种后暂停的种子(排除了出错的种子)
fix #513 #630 1. 没考虑到会直接把所有已暂停种子重新开始,即使不是辅出来的种子 2. 没考虑到会把 qB 跳检的种子自动开始,即使不直接报错,也需要人工确认
This commit is contained in:
@@ -34,7 +34,7 @@ class IYUUAutoSeed(_PluginBase):
|
||||
# 插件图标
|
||||
plugin_icon = "IYUU.png"
|
||||
# 插件版本
|
||||
plugin_version = "1.9.9"
|
||||
plugin_version = "1.9.10"
|
||||
# 插件作者
|
||||
plugin_author = "jxxghp"
|
||||
# 作者主页
|
||||
@@ -633,21 +633,7 @@ class IYUUAutoSeed(_PluginBase):
|
||||
self.check_recheck()
|
||||
else:
|
||||
logger.info(f"没有需要辅种的种子")
|
||||
# qb 中,辅种结束后,一起开始所有辅种后暂停的种子(排除了出错的种子),及时人工确认也是手动开始这部分种子
|
||||
for downloader in self._downloaders:
|
||||
# 只处理 qb
|
||||
if downloader == "qbittorrent":
|
||||
downloader_obj = self.__get_downloader(downloader)
|
||||
paused_torrents, _ = downloader_obj.get_torrents(status="paused")
|
||||
# errored_torrents, _ = downloader_obj.get_torrents(status=["errored"])
|
||||
pausedUP_torrent_hashs = []
|
||||
for torrent in paused_torrents:
|
||||
if torrent.state in ['pausedUP', 'stoppedUP']:
|
||||
pausedUP_torrent_hashs.append(torrent.hash)
|
||||
logger.info(f"下载器 {downloader} 自动开始种子 {torrent.name}")
|
||||
else:
|
||||
logger.info(f"下载器 {downloader} 不自动开始种子 {torrent.name}, state={torrent.state}")
|
||||
downloader_obj.start_torrents(ids=pausedUP_torrent_hashs)
|
||||
|
||||
# 保存缓存
|
||||
self.__update_config()
|
||||
# 发送消息
|
||||
|
||||
Reference in New Issue
Block a user