mirror of
https://github.com/d0zingcat/MoviePilot-Plugins.git
synced 2026-05-14 07:26:51 +00:00
优化仪表板组件标题;优化仪表板下载剩余时间描述。
This commit is contained in:
@@ -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')
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user