From b294e42dbbde7c82b370071a1c21ae25d90bd7a7 Mon Sep 17 00:00:00 2001 From: Alex Liu Date: Tue, 25 Jun 2024 09:44:02 +0800 Subject: [PATCH] =?UTF-8?q?[fix:=20=E6=B8=85=E7=90=86QB=E6=97=A0=E6=95=88?= =?UTF-8?q?=E5=81=9A=E7=A7=8D]=20=E4=BF=AE=E6=AD=A3=E9=80=9A=E7=9F=A5?= =?UTF-8?q?=E6=96=87=E6=A1=88=E5=92=8C=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/cleaninvalidseed/__init__.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/plugins/cleaninvalidseed/__init__.py b/plugins/cleaninvalidseed/__init__.py index 3420999..d041065 100644 --- a/plugins/cleaninvalidseed/__init__.py +++ b/plugins/cleaninvalidseed/__init__.py @@ -464,10 +464,11 @@ class CleanInvalidSeed(_PluginBase): logger.info(exclude_labels_msg) # 通知 if self._notify: + invalid_msg = invalid_msg.replace("_", "\_") self.post_message( mtype=NotificationType.SiteMessage, title=f"【清理无效做种】", - text=f"共检测到{len(invalid_torrent_tuple_list)}个无效种子" + (", 已标记" if self._label_only else ""), + text=invalid_msg, ) if self._notify_all: tracker_not_working_msg = tracker_not_working_msg.replace("_", "\_") @@ -703,7 +704,7 @@ class CleanInvalidSeed(_PluginBase): "component": "VSwitch", "props": { "model": "label_only", - "label": "仅标记模式(开启后不会执行删除)", + "label": "仅标记模式(开启后不会删种)", }, } ], @@ -819,7 +820,7 @@ class CleanInvalidSeed(_PluginBase): "model": "exclude_labels", "label": "过滤删种标签", "rows": 2, - "placeholder": "多个标签请换行,仅针对删除删除", + "placeholder": "多个标签请换行,仅针对删除种子", }, } ], @@ -839,7 +840,7 @@ class CleanInvalidSeed(_PluginBase): "model": "custom_error_msg", "label": "自定义无效做种tracker错误信息", "rows": 5, - "placeholder": "填入想要清理的种子的tracker错误信息,如'skipping tracker announce (unreachable) ',多个信息请换行", + "placeholder": "填入想要清理的种子的tracker错误信息,如'skipping tracker announce (unreachable)',多个信息请换行", }, } ],