From c77314eec5451d80fc0f579d9bb6937fa46e85f4 Mon Sep 17 00:00:00 2001 From: thsrite Date: Thu, 31 Oct 2024 15:47:30 +0800 Subject: [PATCH] =?UTF-8?q?fix=20EmbyMetaRefresh=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E5=88=B7=E6=96=B0=E9=80=BB=E8=BE=91=EF=BC=8C=E8=BF=87=E6=BB=A4?= =?UTF-8?q?=E6=8E=89=E4=BF=A1=E6=81=AF=E5=85=A8=E7=9A=84=E5=AA=92=E4=BD=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.v2.json | 4 ++-- plugins.v2/embymetarefresh/__init__.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.v2.json b/package.v2.json index c872c3d..8664ba4 100644 --- a/package.v2.json +++ b/package.v2.json @@ -3,12 +3,12 @@ "name": "Emby元数据刷新", "description": "定时刷新Emby媒体库元数据,演职人员中文。", "labels": "Emby", - "version": "2.1", + "version": "2.1.1", "icon": "https://raw.githubusercontent.com/thsrite/MoviePilot-Plugins/main/icons/emby-icon.png", "author": "thsrite", "level": 1, "history": { - "v2.1": "优化刷新逻辑,过滤掉信息全的媒体", + "v2.1.1": "优化刷新逻辑,过滤掉信息全的媒体", "v2.0.1": "获取tmdb图片时使用PROXY_HOST代理", "v2.0": "适配v2", "v1.8": "适配v2多媒体服务器", diff --git a/plugins.v2/embymetarefresh/__init__.py b/plugins.v2/embymetarefresh/__init__.py index 1a8376e..666d52c 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" + plugin_version = "2.1.1" # 插件作者 plugin_author = "thsrite" # 作者主页 @@ -190,7 +190,7 @@ class EmbyMetaRefresh(_PluginBase): # 信息不全再刷新 if (str(item.get('Type')) == 'Episode' and str( item.get("Name")) == f"第 {item.get('IndexNumber')} 集") or not item.get( - "ProviderIds", {}).get("Imdb") or not item.get("Overview") or not item.get("ImageTags"): + "Overview") or not item.get("ImageTags"): logger.info( f"开始刷新媒体库元数据,最新媒体:{'电视剧' if str(item.get('Type')) == 'Episode' else '电影'} {'%s S%02dE%02d %s' % (item.get('SeriesName'), item.get('ParentIndexNumber'), item.get('IndexNumber'), item.get('Name')) if str(item.get('Type')) == 'Episode' else item.get('Name')} {item.get('Id')}") self.__refresh_emby_library_by_id(item.get("Id"))