From 1465e76edbeb07b131d91f8d2a3339ec12275791 Mon Sep 17 00:00:00 2001 From: Allen Date: Sat, 25 May 2024 22:13:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dtr=E6=B4=BB=E5=8A=A8=E7=A7=8D?= =?UTF-8?q?=E5=AD=90=E4=BB=AA=E8=A1=A8=E6=9D=BF=E7=9A=84=E7=A7=8D=E5=AD=90?= =?UTF-8?q?=E6=8E=92=E5=BA=8F=E7=9A=84bug=EF=BC=9B=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E6=8F=92=E4=BB=B6=E7=9A=84=E6=B6=88=E6=81=AF=E5=8F=91=E9=80=81?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 3 ++- plugins/downloaderhelper/__init__.py | 9 +++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 89e64df..9318e3d 100644 --- a/package.json +++ b/package.json @@ -635,11 +635,12 @@ "name": "下载器助手", "description": "自动做种、站点标签、自动删种。", "labels": "下载管理,仪表板", - "version": "2.3", + "version": "2.4", "icon": "DownloaderHelper.png", "author": "hotlcc", "level": 2, "history": { + "v2.4": "修复tr活动种子仪表板的种子排序的bug;优化插件的消息发送。", "v2.3": "仪表板支持多个下载器活动种子组件(主程序版本需大于v1.9.1)。", "v2.2": "优化仪表板组件标题;优化仪表板下载剩余时间描述。", "v2.1": "优化了初始配置建议;优化了配置Tracker的弹窗大小。", diff --git a/plugins/downloaderhelper/__init__.py b/plugins/downloaderhelper/__init__.py index 911dbb2..29f8eaa 100644 --- a/plugins/downloaderhelper/__init__.py +++ b/plugins/downloaderhelper/__init__.py @@ -33,7 +33,7 @@ class DownloaderHelper(_PluginBase): # 插件图标 plugin_icon = "DownloaderHelper.png" # 插件版本 - plugin_version = "2.3" + plugin_version = "2.4" # 插件作者 plugin_author = "hotlcc" # 作者主页 @@ -670,7 +670,7 @@ class DownloaderHelper(_PluginBase): continue dashboard_meta.append({ "key": downloader.id, - "name": f"活动种子[{downloader.short_name}]", + "name": f"活动种子 #{downloader.short_name}", }) return dashboard_meta @@ -728,7 +728,7 @@ class DownloaderHelper(_PluginBase): # 全局配置 attrs = { - 'title': f'活动种子[{downloader.short_name}]' + 'title': f'活动种子 #{downloader.short_name}' } if self.__check_target_downloader(downloader_id=downloader_id): attrs['refresh'] = self.__get_config_item('dashboard_widget_refresh') @@ -1293,7 +1293,7 @@ class DownloaderHelper(_PluginBase): text = self.__build_notify_message(context=context) if not text: return - self.post_message(title=f'{self.plugin_name}任务执行结果', text=text, userid=context.get_username()) + self.post_message(title=f'{self.plugin_name}任务执行结果', text=text) @staticmethod def __build_notify_message(context: TaskContext): @@ -2128,6 +2128,7 @@ class DownloaderHelper(_PluginBase): arguments.append('id') arguments.append(TorrentField.NAME.tr) arguments.append('hashString') + arguments.append(TorrentField.ADD_TIME.tr) # 处理依赖的字段 if TorrentField.COMPLETED in fields: arguments.append('fileStats')