mirror of
https://github.com/thsrite/MoviePilot-Plugins.git
synced 2026-03-27 10:05:57 +00:00
fix 适配神医助手2.0.0.0
This commit is contained in:
@@ -3,11 +3,12 @@
|
||||
"name": "Emby元数据刷新",
|
||||
"description": "定时刷新Emby媒体库元数据,演职人员中文。",
|
||||
"labels": "Emby",
|
||||
"version": "2.2.0",
|
||||
"version": "2.2.1",
|
||||
"icon": "https://raw.githubusercontent.com/thsrite/MoviePilot-Plugins/main/icons/emby-icon.png",
|
||||
"author": "thsrite",
|
||||
"level": 1,
|
||||
"history": {
|
||||
"v2.2.1": "适配神医助手2.0.0.0",
|
||||
"v2.2.0": "修复查询tmdb封面逻辑",
|
||||
"v2.1.9": "优化刷新封面逻辑(原则是Emby无封面且TMDB有封面就刷新)",
|
||||
"v2.1.7": "兼容Emby插件新名称:神医助手",
|
||||
|
||||
@@ -37,7 +37,7 @@ class EmbyMetaRefresh(_PluginBase):
|
||||
# 插件图标
|
||||
plugin_icon = "https://raw.githubusercontent.com/thsrite/MoviePilot-Plugins/main/icons/emby-icon.png"
|
||||
# 插件版本
|
||||
plugin_version = "2.2.0"
|
||||
plugin_version = "2.2.1"
|
||||
# 插件作者
|
||||
plugin_author = "thsrite"
|
||||
# 作者主页
|
||||
@@ -621,10 +621,11 @@ class EmbyMetaRefresh(_PluginBase):
|
||||
logger.debug("神医助手插件未安装")
|
||||
return None, None
|
||||
|
||||
plugin_id = f"{plugin_id[:6]}:{plugin_name}"
|
||||
plugin_id = f"{plugin_id[:6]}:MediaInfoExtractPageView"
|
||||
|
||||
# 获取插件配置
|
||||
plugin_info = self.__get_plugin_info(plugin_id)
|
||||
|
||||
if not plugin_info:
|
||||
return None, None
|
||||
# 获取神医助手配置
|
||||
@@ -638,7 +639,24 @@ class EmbyMetaRefresh(_PluginBase):
|
||||
"""
|
||||
设置神医助手独占模式
|
||||
"""
|
||||
plugin_config["MediaInfoExtractOptions"]["ExclusiveExtract"] = exclusive_mode
|
||||
plugin_config["ExclusiveExtract"] = exclusive_mode
|
||||
plugin_config["ExclusiveControlList"] = [
|
||||
{
|
||||
"Value": "IgnoreFileChange",
|
||||
"Name": "忽略文件变更",
|
||||
"IsEnabled": False
|
||||
},
|
||||
{
|
||||
"Value": "CatchAllAllow",
|
||||
"Name": "尽可能全放行",
|
||||
"IsEnabled": False
|
||||
},
|
||||
{
|
||||
"Value": "CatchAllBlock",
|
||||
"Name": "尽可能全阻止",
|
||||
"IsEnabled": True
|
||||
}
|
||||
]
|
||||
data = {
|
||||
"ClientLocale": "zh-cn",
|
||||
"CommandId": "PageSave",
|
||||
@@ -646,7 +664,6 @@ class EmbyMetaRefresh(_PluginBase):
|
||||
"PageId": plugin_id,
|
||||
"Data": json.dumps(plugin_config, ensure_ascii=False)
|
||||
}
|
||||
|
||||
try:
|
||||
res = emby.post_data(
|
||||
url=f"[HOST]emby/UI/Command?reqformat=json&api_key=[APIKEY]",
|
||||
|
||||
Reference in New Issue
Block a user