mirror of
https://github.com/d0zingcat/MoviePilot-Plugins.git
synced 2026-05-13 23:16:47 +00:00
修复了插件自动升级的bug
This commit is contained in:
@@ -666,11 +666,12 @@
|
||||
"name": "插件自动升级",
|
||||
"description": "定时检测、升级插件。",
|
||||
"labels": "自动更新",
|
||||
"version": "1.6",
|
||||
"version": "1.7",
|
||||
"icon": "PluginAutoUpgrade.png",
|
||||
"author": "hotlcc",
|
||||
"level": 1,
|
||||
"history": {
|
||||
"v1.7": "修复了一些BUG。",
|
||||
"v1.6": "修正数字配置值提交为字符串导致的问题。",
|
||||
"v1.5": "支持配置升级记录最大保存数量和最大展示数量。"
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ class PluginAutoUpgrade(_PluginBase):
|
||||
# 插件图标
|
||||
plugin_icon = "PluginAutoUpgrade.png"
|
||||
# 插件版本
|
||||
plugin_version = "1.6"
|
||||
plugin_version = "1.7"
|
||||
# 插件作者
|
||||
plugin_author = "hotlcc"
|
||||
# 作者主页
|
||||
@@ -501,8 +501,7 @@ class PluginAutoUpgrade(_PluginBase):
|
||||
installed_online_plugins = cls.__get_installed_online_plugins()
|
||||
if not installed_online_plugins:
|
||||
return None
|
||||
has_update_online_plugins = [installed_online_plugin for installed_online_plugin in installed_online_plugins if
|
||||
installed_online_plugin and installed_online_plugin.has_update]
|
||||
has_update_online_plugins = [installed_online_plugin for installed_online_plugin in installed_online_plugins if installed_online_plugin and installed_online_plugin.has_update]
|
||||
return has_update_online_plugins
|
||||
|
||||
def __start_scheduler(self, timezone=None) -> bool:
|
||||
@@ -608,6 +607,8 @@ class PluginAutoUpgrade(_PluginBase):
|
||||
批量升级
|
||||
"""
|
||||
has_update_online_plugins = self.__get_has_update_online_plugins()
|
||||
if not has_update_online_plugins:
|
||||
return
|
||||
upgrade_results = []
|
||||
for has_update_online_plugin in has_update_online_plugins:
|
||||
upgrade_result = self.__upgrade_single(has_update_online_plugin)
|
||||
|
||||
Reference in New Issue
Block a user