Merge pull request #619 from so1ve/patch-1

fix(torrenttransfer): 修复 qBittorrent 5 中种子状态为 stoppedUP 而非 pausedUP
This commit is contained in:
jxxghp
2024-12-28 14:40:39 +08:00
committed by GitHub

View File

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