mirror of
https://github.com/thsrite/MoviePilot-Plugins.git
synced 2026-06-06 23:16:47 +00:00
fix 移除自动升级的service
This commit is contained in:
@@ -253,27 +253,6 @@ class PluginAutoUpdate(_PluginBase):
|
||||
}
|
||||
}]
|
||||
|
||||
def get_service(self) -> List[Dict[str, Any]]:
|
||||
"""
|
||||
注册插件公共服务
|
||||
[{
|
||||
"id": "服务ID",
|
||||
"name": "服务名称",
|
||||
"trigger": "触发器:cron/interval/date/CronTrigger.from_crontab()",
|
||||
"func": self.xxx,
|
||||
"kwargs": {} # 定时器参数
|
||||
}]
|
||||
"""
|
||||
if self._enabled and self._cron:
|
||||
return [{
|
||||
"id": "PluginAutoUpdate",
|
||||
"name": "插件自动更新",
|
||||
"trigger": CronTrigger.from_crontab(self._cron),
|
||||
"func": self.plugin_update,
|
||||
"kwargs": {}
|
||||
}]
|
||||
return []
|
||||
|
||||
def get_api(self) -> List[Dict[str, Any]]:
|
||||
pass
|
||||
|
||||
|
||||
Reference in New Issue
Block a user