From 049163c843373a0012d768340e97693c4188e46c Mon Sep 17 00:00:00 2001 From: Ray Date: Sat, 28 Dec 2024 14:12:26 +0800 Subject: [PATCH] =?UTF-8?q?fix(torrenttransfer):=20=E4=BF=AE=E5=A4=8D=20qB?= =?UTF-8?q?ittorrent=205=20=E4=B8=AD=E7=A7=8D=E5=AD=90=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E4=B8=BA=20stoppedUP=20=E8=80=8C=E9=9D=9E=20pausedUP?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins.v2/torrenttransfer/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins.v2/torrenttransfer/__init__.py b/plugins.v2/torrenttransfer/__init__.py index ca6ca7b..2421be3 100644 --- a/plugins.v2/torrenttransfer/__init__.py +++ b/plugins.v2/torrenttransfer/__init__.py @@ -952,7 +952,7 @@ class TorrentTransfer(_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))