fix tag bug

This commit is contained in:
jxxghp
2023-06-13 22:22:08 +08:00
parent 6b3bfd04a3
commit c1a22518a2
3 changed files with 12 additions and 11 deletions

View File

@ -51,7 +51,7 @@ class QbittorrentModule(_ModuleBase):
return None, f"添加种子任务失败:{torrent_path}"
else:
# 获取种子Hash
torrent_hash = self.qbittorrent.get_torrent_id_by_tag(tag=tag)
torrent_hash = self.qbittorrent.get_torrent_id_by_tag(tags=tag)
if not torrent_hash:
return None, f"获取种子Hash失败{torrent_path}"
else:
@ -149,4 +149,3 @@ class QbittorrentModule(_ModuleBase):
:return: bool
"""
return self.qbittorrent.delete_torrents(delete_file=True, ids=hashs)