refactor: centralize MoviePilot server helper

This commit is contained in:
jxxghp
2026-05-27 12:56:45 +08:00
parent db3ad91408
commit 0e5c592862
28 changed files with 1927 additions and 1562 deletions
+2 -2
View File
@@ -5,8 +5,8 @@ from fastapi import FastAPI
from app.chain.system import SystemChain
from app.core.config import global_vars
from app.helper.server import MoviePilotServerHelper
from app.helper.system import SystemHelper
from app.helper.usage import UsageHelper
from app.startup.command_initializer import init_command, stop_command, restart_command
from app.startup.modules_initializer import init_modules, stop_modules
from app.startup.monitor_initializer import stop_monitor, init_monitor
@@ -31,7 +31,7 @@ async def init_extra():
# 重启完成
SystemChain().restart_finish()
# 上报当前安装版本
await UsageHelper().async_report()
await MoviePilotServerHelper.async_report_usage()
@asynccontextmanager