fix
This commit is contained in:
parent
6868712b4e
commit
b90622a88e
@ -45,6 +45,9 @@ class SystemChain(ChainBase):
|
||||
"""
|
||||
重启系统
|
||||
"""
|
||||
if SystemUtils.is_windows():
|
||||
logger.error("windows暂不支持")
|
||||
return
|
||||
if channel and userid:
|
||||
self.post_message(Notification(channel=channel,
|
||||
title="系统正在更新,请耐心等候!", userid=userid))
|
||||
|
@ -80,7 +80,7 @@ class MoviePilotUpdateNotify(_PluginBase):
|
||||
return
|
||||
|
||||
# 本地版本
|
||||
local_version = SystemChain().get_local_version()
|
||||
local_version = SystemChain(self.db).get_local_version()
|
||||
if release_version == local_version:
|
||||
logger.info(f"当前版本:{local_version} 远程版本:{release_version} 停止运行")
|
||||
return
|
||||
@ -98,7 +98,7 @@ class MoviePilotUpdateNotify(_PluginBase):
|
||||
# 自动更新
|
||||
if self._update:
|
||||
logger.info("开始执行自动更新…")
|
||||
SystemChain().update()
|
||||
SystemChain(self.db).update()
|
||||
|
||||
@staticmethod
|
||||
def __get_release_version():
|
||||
|
Loading…
x
Reference in New Issue
Block a user