From bacf3cb0cb79ddf2878ef73d8db8a6389d38cba1 Mon Sep 17 00:00:00 2001 From: thsrite Date: Sat, 30 Dec 2023 00:22:23 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E8=BF=87=E6=BB=A4=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E5=AA=92=E4=BD=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- docs/EmbyReporter.md | 1 + package.json | 2 +- plugins/embyreporter/__init__.py | 14 ++++---------- 4 files changed, 7 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index fc53a2f..53a9045 100644 --- a/README.md +++ b/README.md @@ -22,5 +22,5 @@ MoviePilot三方插件市场:https://github.com/thsrite/MoviePilot-Plugins/ - [同步CookieCloud 1.1](docs%2FSyncCookieCloud.md) - [日程提醒 1.0](docs%2FScheduleReminder.md) - [订阅提醒 1.1](docs%2FSubscribeReminder.md) -- [Emby观影报告 1.1](docs%2FEmbyReporter.md) +- [Emby观影报告 1.2](docs%2FEmbyReporter.md) diff --git a/docs/EmbyReporter.md b/docs/EmbyReporter.md index f242d59..d5437a4 100644 --- a/docs/EmbyReporter.md +++ b/docs/EmbyReporter.md @@ -2,6 +2,7 @@ ### 更新记录 +- 1.2 过滤已删除媒体 - 1.1 修复推送 - 1.0 推送Emby观影报告 diff --git a/package.json b/package.json index 39fd938..14698be 100644 --- a/package.json +++ b/package.json @@ -106,7 +106,7 @@ "EmbyReporter": { "name": "Emby观影报告", "description": "推送Emby观影报告,需Emby安装Playback Report 插件。", - "version": "1.1", + "version": "1.2", "icon": "Pydiocells_A.png", "author": "thsrite", "level": 1 diff --git a/plugins/embyreporter/__init__.py b/plugins/embyreporter/__init__.py index 59ffbbb..31d9a7b 100644 --- a/plugins/embyreporter/__init__.py +++ b/plugins/embyreporter/__init__.py @@ -32,7 +32,7 @@ class EmbyReporter(_PluginBase): # 插件图标 plugin_icon = "Pydiocells_A.png" # 插件版本 - plugin_version = "1.1" + plugin_version = "1.2" # 插件作者 plugin_author = "thsrite" # 作者主页 @@ -380,6 +380,7 @@ class EmbyReporter(_PluginBase): except Exception: continue + logger.info(f"过滤后未删除电影 {len(exites_movies)} 部") # 合并绘制 if len(exites_movies) < 5: for i in range(5 - len(exites_movies) + 1): @@ -397,6 +398,7 @@ class EmbyReporter(_PluginBase): if not success: continue item_id = data["SeriesId"] + i['item_id'] = item_id # 封面图像获取 success, data = self.primary(item_id) if not success: @@ -404,6 +406,7 @@ class EmbyReporter(_PluginBase): exites_tvs.append(i) except Exception: continue + logger.info(f"过滤后未删除电视剧 {len(exites_movies)} 部") all_ranks = exites_movies + exites_tvs index, offset_y = (-1, 0) @@ -412,15 +415,6 @@ class EmbyReporter(_PluginBase): try: # 榜单项数据 user_id, item_id, item_type, name, count, duarion = tuple(i) - print(item_type, item_id, name, count) - # 图片获取,剧集主封面获取 - if item_type != "Movie": - # 获取剧ID - success, data = self.items(user_id, item_id) - if not success: - index -= 1 - continue - item_id = data["SeriesId"] # 封面图像获取 success, data = self.primary(item_id) if not success: