fix downloading

This commit is contained in:
jxxghp 2023-07-09 07:13:41 +08:00
parent 03eba3f6b7
commit 8421608642

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", 'paused', 'stalled_downloading'], status=["downloading"],
tags=tags) tags=tags)
return None if error else torrents or [] return None if error else torrents or []