diff --git a/package.v2.json b/package.v2.json index d1371e3..b81438b 100644 --- a/package.v2.json +++ b/package.v2.json @@ -3,11 +3,12 @@ "name": "Emby元数据刷新", "description": "定时刷新Emby媒体库元数据,演职人员中文。", "labels": "Emby", - "version": "2.1.4", + "version": "2.1.5", "icon": "https://raw.githubusercontent.com/thsrite/MoviePilot-Plugins/main/icons/emby-icon.png", "author": "thsrite", "level": 1, "history": { + "v2.1.5": "媒体库未连接不继续任务", "v2.1.4": "兼容特殊场景刷新", "v2.1.3": "增加自定义延迟", "v2.1.1": "优化刷新逻辑,过滤掉信息全的媒体", diff --git a/plugins.v2/embymetarefresh/__init__.py b/plugins.v2/embymetarefresh/__init__.py index e2890e8..6572fa0 100644 --- a/plugins.v2/embymetarefresh/__init__.py +++ b/plugins.v2/embymetarefresh/__init__.py @@ -36,7 +36,7 @@ class EmbyMetaRefresh(_PluginBase): # 插件图标 plugin_icon = "https://raw.githubusercontent.com/thsrite/MoviePilot-Plugins/main/icons/emby-icon.png" # 插件版本 - plugin_version = "2.1.4" + plugin_version = "2.1.5" # 插件作者 plugin_author = "thsrite" # 作者主页 @@ -155,6 +155,9 @@ class EmbyMetaRefresh(_PluginBase): for emby_name, emby_server in emby_servers.items(): logger.info(f"开始刷新媒体服务器 {emby_name} 的媒体库元数据") emby = emby_server.instance + if not emby: + logger.error(f"Emby媒体服务器 {emby_name} 未连接") + continue self._EMBY_USER = emby_server.instance.get_user() self._EMBY_APIKEY = emby_server.config.config.get("apikey") self._EMBY_HOST = emby_server.config.config.get("host")