From 63c67a5536c6e49c9c389a0e6512588e83242144 Mon Sep 17 00:00:00 2001 From: qiaoyun680 <549653222@qq.com> Date: Mon, 9 Jun 2025 16:33:32 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=AA=92=E4=BD=93=E5=BA=93=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1=E5=99=A8=E9=80=9A=E7=9F=A5:=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E5=89=A7=E9=9B=86=E5=9B=BE=E7=89=87=E5=85=BC=E5=AE=B9=E6=B2=A1?= =?UTF-8?q?=E6=9C=89=E5=AD=A3=E9=9B=86=E4=BF=A1=E6=81=AF=E7=9A=84=E6=83=85?= =?UTF-8?q?=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.v2.json | 3 ++- plugins.v2/mediaservermsg/__init__.py | 13 +++++++------ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/package.v2.json b/package.v2.json index 136c22f..82fcc64 100644 --- a/package.v2.json +++ b/package.v2.json @@ -81,11 +81,12 @@ "name": "媒体库服务器通知", "description": "发送Emby/Jellyfin/Plex服务器的播放、入库等通知消息。", "labels": "消息通知,媒体库", - "version": "1.5", + "version": "1.6", "icon": "mediaplay.png", "author": "jxxghp", "level": 1, "history": { + "v1.6": "查询剧集图片兼容没有季集信息的情况", "v1.5": "支持独立控制媒体服务器通知", "v1.4": "MoviePilot V2 版本媒体库服务器通知插件" } diff --git a/plugins.v2/mediaservermsg/__init__.py b/plugins.v2/mediaservermsg/__init__.py index 80e4105..8196ede 100644 --- a/plugins.v2/mediaservermsg/__init__.py +++ b/plugins.v2/mediaservermsg/__init__.py @@ -18,7 +18,7 @@ class MediaServerMsg(_PluginBase): # 插件图标 plugin_icon = "mediaplay.png" # 插件版本 - plugin_version = "1.5" + plugin_version = "1.6" # 插件作者 plugin_author = "jxxghp" # 作者主页 @@ -318,15 +318,16 @@ class MediaServerMsg(_PluginBase): # 消息图片 image_url = event_info.image_url # 查询剧集图片 - if (event_info.tmdb_id - and event_info.season_id - and event_info.episode_id): + if event_info.tmdb_id: + season_id = event_info.season_id if event_info.season_id else None + episode_id = event_info.episode_id if event_info.episode_id else None + specific_image = self.chain.obtain_specific_image( mediaid=event_info.tmdb_id, mtype=MediaType.TV, image_type=MediaImageType.Backdrop, - season=event_info.season_id, - episode=event_info.episode_id + season=season_id, + episode=episode_id ) if specific_image: image_url = specific_image From 64704387dad65c37945d2d20c6726dc04dae7c48 Mon Sep 17 00:00:00 2001 From: qiaoyun680 <549653222@qq.com> Date: Mon, 9 Jun 2025 16:38:45 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=AA=92=E4=BD=93=E5=BA=93=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1=E5=99=A8=E9=80=9A=E7=9F=A5:=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E5=89=A7=E9=9B=86=E5=9B=BE=E7=89=87=E5=85=BC=E5=AE=B9=E6=B2=A1?= =?UTF-8?q?=E6=9C=89=E5=AD=A3=E9=9B=86=E4=BF=A1=E6=81=AF=E7=9A=84=E6=83=85?= =?UTF-8?q?=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.v2.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.v2.json b/package.v2.json index 93c5cea..1cd9dc4 100644 --- a/package.v2.json +++ b/package.v2.json @@ -83,11 +83,12 @@ "name": "媒体库服务器通知", "description": "发送Emby/Jellyfin/Plex服务器的播放、入库等通知消息。", "labels": "消息通知,媒体库", - "version": "1.5", + "version": "1.6", "icon": "mediaplay.png", "author": "jxxghp", "level": 1, "history": { + "v1.6": "查询剧集图片兼容没有季集信息的情况", "v1.5": "支持独立控制媒体服务器通知", "v1.4": "MoviePilot V2 版本媒体库服务器通知插件" }