From 7983c4324f9b73923ee9971f411ce6ead8ea0dea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=AE=E5=8F=AE=E5=BD=93?= <604054726@qq.com> Date: Sat, 17 Feb 2024 23:32:35 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E5=A4=87=E6=B3=A8=E6=8F=8F=E8=BF=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/downloadsitetag/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/downloadsitetag/__init__.py b/plugins/downloadsitetag/__init__.py index 7c220e9..b0d88cb 100644 --- a/plugins/downloadsitetag/__init__.py +++ b/plugins/downloadsitetag/__init__.py @@ -96,7 +96,7 @@ class DownloadSiteTag(_PluginBase): # 如果下载器获取种子发生错误 或 没有种子 则跳过 if error or not torrents: continue - elif torrents: + else: logger.info(f"{self.LOG_TAG}下载器 {DOWNLOADER} 种子数:{len(torrents)}") for torrent in torrents: # 获取种子hash @@ -224,7 +224,7 @@ class DownloadSiteTag(_PluginBase): else: # 设置标签 if _tags: - # _original_tags = None表示为指定, 因此需要获取原始标签 + # _original_tags = None表示未指定, 因此需要获取原始标签 if _original_tags == None: torrent = downloader_obj.trc.get_torrent(torrent_id=_hash) if torrent: