mirror of
https://github.com/thsrite/MoviePilot-Plugins.git
synced 2026-05-22 07:16:44 +00:00
fix 过滤删除媒体
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
### 更新记录
|
||||
|
||||
- 1.2 过滤已删除媒体
|
||||
- 1.1 修复推送
|
||||
- 1.0 推送Emby观影报告
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user