更新 __init__.py

This commit is contained in:
jxxghp 2023-06-08 21:55:13 +08:00 committed by GitHub
parent 4f7e302507
commit 47395ea51a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -92,7 +92,7 @@ class QbittorrentModule(_ModuleBase):
:return: 下载器中符合状态的种子列表
"""
if status == TorrentStatus.TRANSFER:
torrents = self.qbittorrent.get_transfer_torrents(tag=settings.TORRENT_TAG)
torrents = self.qbittorrent.get_transfer_torrents(tag=settings.TORRENT_TAG or None)
else:
return None
return torrents