fix(iyuuautoseed.v2): qbittorrent 5 support

This commit is contained in:
Ray
2024-12-29 17:07:46 +08:00
committed by GitHub
parent 5437527863
commit 9bfaccc4fe

View File

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