From 543752786333b60c009ce506a34471aaa7bb82da Mon Sep 17 00:00:00 2001 From: Ray Date: Sun, 29 Dec 2024 17:06:09 +0800 Subject: [PATCH 1/5] fix(qbcommand.v1): qbittorrent 5 support --- plugins/qbcommand/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/qbcommand/__init__.py b/plugins/qbcommand/__init__.py index 78f6916..4f8d497 100644 --- a/plugins/qbcommand/__init__.py +++ b/plugins/qbcommand/__init__.py @@ -622,7 +622,7 @@ class QbCommand(_PluginBase): torrents = [] for torrent in all_torrents: - if torrent.get("state") == "pausedUP": + if torrent.get("state") == "pausedUP" or torrent.get("state") == "stoppedUP": tracker_url = self.get_torrent_tracker(torrent) if not tracker_url: logger.info(f"获取种子 {torrent.name} Tracker失败,不过滤该种子") From 9bfaccc4fe9de1c92b998e03927d2ecb251b1d04 Mon Sep 17 00:00:00 2001 From: Ray Date: Sun, 29 Dec 2024 17:07:46 +0800 Subject: [PATCH 2/5] fix(iyuuautoseed.v2): qbittorrent 5 support --- plugins.v2/iyuuautoseed/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins.v2/iyuuautoseed/__init__.py b/plugins.v2/iyuuautoseed/__init__.py index 130da1c..7cbf8a8 100644 --- a/plugins.v2/iyuuautoseed/__init__.py +++ b/plugins.v2/iyuuautoseed/__init__.py @@ -1018,7 +1018,7 @@ class IYUUAutoSeed(_PluginBase): 判断种子是否可以做种并处于暂停状态 """ try: - return torrent.get("state") == "pausedUP" if dl_type == "qbittorrent" \ + return torrent.get("state") == "pausedUP" or torrent.get("state") == "stoppedUP" if dl_type == "qbittorrent" \ else (torrent.status.stopped and torrent.percent_done == 1) except Exception as e: print(str(e)) From e5fe8ea14fd4d78757fae8544957cb95abf4ec44 Mon Sep 17 00:00:00 2001 From: Ray Date: Sun, 29 Dec 2024 17:08:52 +0800 Subject: [PATCH 3/5] fix(iyuuautoseed.v1): qbittorrent 5 support --- plugins/iyuuautoseed/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/iyuuautoseed/__init__.py b/plugins/iyuuautoseed/__init__.py index d1d528e..525e2ed 100644 --- a/plugins/iyuuautoseed/__init__.py +++ b/plugins/iyuuautoseed/__init__.py @@ -1006,7 +1006,7 @@ class IYUUAutoSeed(_PluginBase): 判断种子是否可以做种并处于暂停状态 """ try: - return torrent.get("state") == "pausedUP" if dl_type == "qbittorrent" \ + return torrent.get("state") == "pausedUP" or torrent.get("state") == "stoppedUP" if dl_type == "qbittorrent" \ else (torrent.status.stopped and torrent.percent_done == 1) except Exception as e: print(str(e)) From 5f4deec6d48378e2a5bda99304c62ea5cd3a19a7 Mon Sep 17 00:00:00 2001 From: Ray Date: Sun, 29 Dec 2024 17:10:11 +0800 Subject: [PATCH 4/5] fix(qbcommand.v2): qbittorrent 5 support --- plugins.v2/qbcommand/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins.v2/qbcommand/__init__.py b/plugins.v2/qbcommand/__init__.py index 44799e9..dab8d71 100644 --- a/plugins.v2/qbcommand/__init__.py +++ b/plugins.v2/qbcommand/__init__.py @@ -678,7 +678,7 @@ class QbCommand(_PluginBase): torrents = [] for torrent in all_torrents: - if torrent.get("state") == "pausedUP": + if torrent.get("state") == "pausedUP" or torrent.get("state") == "stoppedUP": tracker_url = self.get_torrent_tracker(torrent) if not tracker_url: logger.info(f"获取种子 {torrent.name} Tracker失败,不过滤该种子") From 03cbdbb41085f62981b9ec2048310ed3ad9d6f67 Mon Sep 17 00:00:00 2001 From: Ray Date: Sun, 29 Dec 2024 17:12:30 +0800 Subject: [PATCH 5/5] fix(crossseed.v1): qbittorrent 5 support --- plugins/crossseed/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/crossseed/__init__.py b/plugins/crossseed/__init__.py index 82fb138..95586bf 100644 --- a/plugins/crossseed/__init__.py +++ b/plugins/crossseed/__init__.py @@ -1164,7 +1164,7 @@ class CrossSeed(_PluginBase): 判断种子是否可以做种并处于暂停状态 """ try: - return torrent.get("state") == "pausedUP" if dl_type == "qbittorrent" \ + return torrent.get("state") == "pausedUP" or torrent.get("state") == "stoppedUP" if dl_type == "qbittorrent" \ else (torrent.status.stopped and torrent.percent_done == 1) except Exception as e: print(str(e))