修复 qBittorrent 重复任务临时标签残留 (#6093)

This commit is contained in:
jxxghp
2026-07-12 16:47:12 +08:00
parent bd5ddd6158
commit 476dfef7d9
2 changed files with 25 additions and 0 deletions

View File

@@ -218,6 +218,7 @@ class QbittorrentModule(_ModuleBase, _DownloaderBase[Qbittorrent]):
if settings.TORRENT_TAG and settings.TORRENT_TAG not in torrent_tags:
logger.info(f"给种子 {torrent_hash} 打上标签:{settings.TORRENT_TAG}")
server.set_torrents_tag(ids=torrent_hash, tags=[settings.TORRENT_TAG])
server.delete_torrents_tag(torrent_hash, tag)
return downloader or self.get_default_config_name(), torrent_hash, torrent_layout, f"下载任务已存在"
finally:
torrents.clear()