From aefba8331908cf1cbc18c741d70c772b0df1c784 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Thu, 30 Nov 2023 13:35:26 +0800 Subject: [PATCH] fix --- app/modules/qbittorrent/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/modules/qbittorrent/__init__.py b/app/modules/qbittorrent/__init__.py index 33c8b303..917492cd 100644 --- a/app/modules/qbittorrent/__init__.py +++ b/app/modules/qbittorrent/__init__.py @@ -102,6 +102,7 @@ class QbittorrentModule(_ModuleBase): # 给种子打上标签 if settings.TORRENT_TAG: logger.info(f"给种子 {torrent_hash} 打上标签:{settings.TORRENT_TAG}") + self.qbittorrent.remove_torrents_tag(ids=torrent_hash, tag=['已整理']) self.qbittorrent.set_torrents_tag(ids=torrent_hash, tags=[settings.TORRENT_TAG]) return torrent_hash, f"下载任务已存在" return None, f"添加种子任务失败:{content}"