mirror of
https://github.com/d0zingcat/MoviePilot-Plugins.git
synced 2026-05-13 23:16:47 +00:00
优化仪表板组件标题;优化仪表板下载剩余时间描述。
This commit is contained in:
@@ -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": "优化了仪表板组件性能。",
|
||||
|
||||
@@ -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