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

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

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