更新登录壁纸本地化插件 适配新版MP

This commit is contained in:
景大侠
2026-01-04 12:05:30 +08:00
parent 738e224ba3
commit 48b5d1018e
2 changed files with 9 additions and 3 deletions

View File

@@ -594,11 +594,12 @@
"name": "登录壁纸本地化",
"description": "将MoviePilot的登录壁纸下载到本地。",
"labels": "壁纸,本地化",
"version": "1.4.1",
"version": "1.4.2",
"icon": "Macos_Sierra.png",
"author": "jxxghp",
"level": 1,
"history": {
"v1.4.2": "适配MoviePilot v2.8.8+",
"v1.4.1": "MoviePilot V2 版本登录壁纸本地化插件"
}
}

View File

@@ -7,6 +7,11 @@ import pytz
from apscheduler.schedulers.background import BackgroundScheduler
from app.core.config import settings
try:
# MP v2.8.8+
from app.helper.image import WallpaperHelper
except ImportError:
# 旧版MP
from app.helper.wallpaper import WallpaperHelper
from app.log import logger
from app.plugins import _PluginBase
@@ -21,7 +26,7 @@ class TmdbWallpaper(_PluginBase):
# 插件图标
plugin_icon = "Macos_Sierra.png"
# 插件版本
plugin_version = "1.4.1"
plugin_version = "1.4.2"
# 插件作者
plugin_author = "jxxghp"
# 作者主页