Merge pull request #331 from hotlcc/develop-20240525-插件优化

This commit is contained in:
jxxghp
2024-05-25 22:16:41 +08:00
committed by GitHub
2 changed files with 7 additions and 5 deletions

View File

@@ -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的弹窗大小。",

View File

@@ -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')