Skip to content

Commit

Permalink
fix: qbittorrent api
Browse files Browse the repository at this point in the history
  • Loading branch information
linyuan0213 committed Jul 29, 2024
1 parent b7cfa09 commit e888156
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/downloader/client/qbittorrent.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ def get_completed_torrents(self, ids=None, tag=None):
"""
if not self.qbc:
return None
torrents, error = self.get_torrents(status=["completed"], ids=ids, tag=tag)
torrents, error = self.get_torrents(status="completed", ids=ids, tag=tag)
return None if error else torrents or []

def get_downloading_torrents(self, ids=None, tag=None):
Expand All @@ -222,7 +222,7 @@ def get_downloading_torrents(self, ids=None, tag=None):
if not self.qbc:
return None
torrents, error = self.get_torrents(ids=ids,
status=["downloading"],
status="downloading",
tag=tag)
return None if error else torrents or []

Expand Down

0 comments on commit e888156

Please sign in to comment.