commit
c3fe22a76f
@ -1,3 +1,5 @@
|
||||
import datetime
|
||||
|
||||
from apscheduler.schedulers.background import BackgroundScheduler
|
||||
from apscheduler.triggers.cron import CronTrigger
|
||||
|
||||
@ -81,12 +83,14 @@ class MoviePilotUpdateNotify(_PluginBase):
|
||||
|
||||
# 本地版本
|
||||
local_version = SystemChain().get_local_version()
|
||||
if release_version == local_version:
|
||||
if local_version and release_version <= local_version:
|
||||
logger.info(f"当前版本:{local_version} 远程版本:{release_version} 停止运行")
|
||||
return
|
||||
|
||||
# 推送更新消息
|
||||
if self._notify:
|
||||
# 将时间字符串转为datetime对象
|
||||
update_time = datetime.datetime.strptime(update_time, "%Y-%m-%dT%H:%M:%SZ").strftime("%Y-%m-%d %H:%M:%S")
|
||||
self.post_message(
|
||||
mtype=NotificationType.SiteMessage,
|
||||
title="【MoviePilot更新通知】",
|
||||
|
Loading…
x
Reference in New Issue
Block a user