From 9bfaccc4fe9de1c92b998e03927d2ecb251b1d04 Mon Sep 17 00:00:00 2001 From: Ray Date: Sun, 29 Dec 2024 17:07:46 +0800 Subject: [PATCH] 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))