fix 修复媒体库黑名单设置

This commit is contained in:
thsrite
2024-11-03 19:53:44 +08:00
parent f9ba8b2d60
commit f87121b071
4 changed files with 12 additions and 8 deletions

View File

@@ -218,11 +218,12 @@
"name": "Emby观影报告",
"description": "推送Emby观影报告需Emby安装Playback Report 插件。",
"labels": "Emby",
"version": "1.9",
"version": "1.9.1",
"icon": "Pydiocells_A.png",
"author": "thsrite",
"level": 1,
"history": {
"v1.9.1": "修复媒体库黑名单设置",
"v1.9": "支持媒体库黑名单设置",
"v1.8": "推送微信增加时间戳,防止使用缓存",
"v1.7": "分块发送,兼容微信推送",

View File

@@ -44,11 +44,12 @@
"name": "Emby观影报告",
"description": "推送Emby观影报告需Emby安装Playback Report 插件。",
"labels": "Emby",
"version": "2.1",
"version": "2.1.1",
"icon": "Pydiocells_A.png",
"author": "thsrite",
"level": 1,
"history": {
"v2.1.1": "修复媒体库黑名单设置",
"v2.1": "支持媒体库黑名单设置",
"v2.0": "修复获取媒体服务器配置",
"v1.9": "适配v2多媒体服务器",

View File

@@ -34,7 +34,7 @@ class EmbyReporter(_PluginBase):
# 插件图标
plugin_icon = "Pydiocells_A.png"
# 插件版本
plugin_version = "2.1"
plugin_version = "2.1.1"
# 插件作者
plugin_author = "thsrite"
# 作者主页
@@ -644,7 +644,8 @@ class EmbyReporter(_PluginBase):
success, info = self.items(user_id, item_id)
if success and info:
success, parent_info = self.items(user_id, info["ParentId"])
if success and parent_info and parent_info["ParentId"] in self._black_library:
if (success and parent_info
and str(parent_info["ParentId"]) in str(self._black_library).split(",")):
logger.info(f"电影 {name} 已在媒体库黑名单 {self._black_library} 中,已过滤")
continue
exists_movies.append(i)
@@ -675,7 +676,7 @@ class EmbyReporter(_PluginBase):
# 过滤电视剧
if self._black_library:
success, parent_info = self.items(user_id, item_id)
if success and parent_info and parent_info["ParentId"] in self._black_library:
if success and parent_info and str(parent_info["ParentId"]) in str(self._black_library).split(","):
logger.info(f"电视剧 {name} 已在媒体库黑名单 {self._black_library} 中,已过滤")
continue
# 封面图像获取

View File

@@ -33,7 +33,7 @@ class EmbyReporter(_PluginBase):
# 插件图标
plugin_icon = "Pydiocells_A.png"
# 插件版本
plugin_version = "1.9"
plugin_version = "1.9.1"
# 插件作者
plugin_author = "thsrite"
# 作者主页
@@ -600,7 +600,8 @@ class EmbyReporter(_PluginBase):
success, info = self.items(user_id, item_id)
if success and info:
success, parent_info = self.items(user_id, info["ParentId"])
if success and parent_info and parent_info["ParentId"] in self._black_library:
if (success and parent_info
and str(parent_info["ParentId"]) in str(self._black_library).split(",")):
logger.info(f"电影 {name} 已在媒体库黑名单 {self._black_library} 中,已过滤")
continue
exists_movies.append(i)
@@ -630,7 +631,7 @@ class EmbyReporter(_PluginBase):
# 过滤电视剧
if self._black_library:
success, parent_info = self.items(user_id, item_id)
if success and parent_info and parent_info["ParentId"] in self._black_library:
if success and parent_info and str(parent_info["ParentId"]) in str(self._black_library).split(","):
logger.info(f"电视剧 {name} 已在媒体库黑名单 {self._black_library} 中,已过滤")
continue
# 封面图像获取