下载中包括暂停

This commit is contained in:
jxxghp 2023-07-02 16:33:08 +08:00
parent 8403ae6795
commit d2152c4341
2 changed files with 2 additions and 2 deletions

View File

@ -95,7 +95,7 @@ class Qbittorrent(metaclass=Singleton):
if not self.qbc: if not self.qbc:
return None return None
torrents, error = self.get_torrents(ids=ids, torrents, error = self.get_torrents(ids=ids,
status=["downloading"], status=["downloading", 'paused'],
tags=tags) tags=tags)
return None if error else torrents or [] return None if error else torrents or []

View File

@ -103,7 +103,7 @@ class Transmission(metaclass=Singleton):
return None return None
try: try:
torrents, error = self.get_torrents(ids=ids, torrents, error = self.get_torrents(ids=ids,
status=["downloading", "download_pending"], status=["downloading", "download_pending", "stopped"],
tags=tags) tags=tags)
return None if error else torrents or [] return None if error else torrents or []
except Exception as err: except Exception as err: