From 216489c95b3038d2f62c2b83f9c5a938c8ffeffd Mon Sep 17 00:00:00 2001 From: HankunYu Date: Tue, 5 Mar 2024 20:26:56 +0000 Subject: [PATCH] =?UTF-8?q?Fix=20=E8=87=AA=E5=8A=A8=E5=88=A0=E7=A7=8D?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 使用extend添加MP标签导致string被拆分为单个字母添加到tags中,导致无法正常使用。改为append。 --- package.json | 2 +- plugins/torrentremover/__init__.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 2b60a05..5d8cbca 100644 --- a/package.json +++ b/package.json @@ -74,7 +74,7 @@ "TorrentRemover": { "name": "自动删种", "description": "自动删除下载器中的下载任务。", - "version": "1.2", + "version": "1.2.1", "icon": "delete.jpg", "author": "jxxghp", "level": 2 diff --git a/plugins/torrentremover/__init__.py b/plugins/torrentremover/__init__.py index 07205dd..c7a9b12 100644 --- a/plugins/torrentremover/__init__.py +++ b/plugins/torrentremover/__init__.py @@ -27,7 +27,7 @@ class TorrentRemover(_PluginBase): # 插件图标 plugin_icon = "delete.jpg" # 插件版本 - plugin_version = "1.2" + plugin_version = "1.2.1" # 插件作者 plugin_author = "jxxghp" # 作者主页 @@ -767,7 +767,7 @@ class TorrentRemover(_PluginBase): else: tags = [] if self._mponly: - tags.extend(settings.TORRENT_TAG) + tags.append(settings.TORRENT_TAG) # 查询种子 torrents, error_flag = downloader_obj.get_torrents(tags=tags or None) if error_flag: