优化仪表板组件标题;优化仪表板下载剩余时间描述。

This commit is contained in:
Allen
2024-05-17 15:37:01 +08:00
parent cd93af5c4e
commit 9784fa5a19
3 changed files with 5 additions and 4 deletions

View File

@@ -622,11 +622,12 @@
"name": "下载器助手",
"description": "自动做种、站点标签、自动删种。",
"labels": "下载管理",
"version": "2.1",
"version": "2.2",
"icon": "DownloaderHelper.png",
"author": "hotlcc",
"level": 2,
"history": {
"v2.2": "优化仪表板组件标题;优化仪表板下载剩余时间描述。",
"v2.1": "优化了初始配置建议优化了配置Tracker的弹窗大小。",
"v2.0": "优化了仪表板种子状态提升仪表板对TR的适配度。",
"v1.9": "优化了仪表板组件性能。",

View File

@@ -33,7 +33,7 @@ class DownloaderHelper(_PluginBase):
# 插件图标
plugin_icon = "DownloaderHelper.png"
# 插件版本
plugin_version = "2.1"
plugin_version = "2.2"
# 插件作者
plugin_author = "hotlcc"
# 作者主页
@@ -680,7 +680,7 @@ class DownloaderHelper(_PluginBase):
}
# 全局配置
attrs = {
'subtitle': '活动种子'
'title': '活动种子'
}
if self.__check_target_downloader():
attrs['refresh'] = self.__get_config_item('dashboard_widget_refresh')

View File

@@ -147,7 +147,7 @@ class TimeIntervalConvertor(IConvertor, metaclass=Singleton):
return ''
if data == 0:
return '0'
return StringUtils.str_timelong(time_sec=data)
return StringUtils.str_secends(time_sec=data)
except Exception as e:
logger.error(f'{__name__} Error: {str(e)}, data = {data}', exc_info=True)
return None