From 48b5d1018e439adf0056c7063497e1c9994b8ad1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=99=AF=E5=A4=A7=E4=BE=A0?= Date: Sun, 4 Jan 2026 12:05:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=99=BB=E5=BD=95=E5=A3=81?= =?UTF-8?q?=E7=BA=B8=E6=9C=AC=E5=9C=B0=E5=8C=96=E6=8F=92=E4=BB=B6=20?= =?UTF-8?q?=E9=80=82=E9=85=8D=E6=96=B0=E7=89=88MP?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.v2.json | 3 ++- plugins.v2/tmdbwallpaper/__init__.py | 9 +++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/package.v2.json b/package.v2.json index 1108deb..94fc014 100644 --- a/package.v2.json +++ b/package.v2.json @@ -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 版本登录壁纸本地化插件" } } diff --git a/plugins.v2/tmdbwallpaper/__init__.py b/plugins.v2/tmdbwallpaper/__init__.py index 0b9f324..ca3f536 100644 --- a/plugins.v2/tmdbwallpaper/__init__.py +++ b/plugins.v2/tmdbwallpaper/__init__.py @@ -7,7 +7,12 @@ import pytz from apscheduler.schedulers.background import BackgroundScheduler from app.core.config import settings -from app.helper.wallpaper import WallpaperHelper +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 from app.utils.http import RequestUtils @@ -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" # 作者主页