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" # 作者主页