mirror of
https://github.com/thsrite/MoviePilot-Plugins.git
synced 2026-03-27 10:05:57 +00:00
fix Emby元数据刷新 v1.7.2 优化剧集演员刮削
This commit is contained in:
@@ -35,7 +35,7 @@ MoviePilot三方插件市场:https://github.com/thsrite/MoviePilot-Plugins/
|
||||
- 插件彻底卸载 v1.0
|
||||
- 实时软连接 v2.0.1
|
||||
- 订阅规则自动填充 v2.7
|
||||
- Emby元数据刷新 v1.7.1
|
||||
- Emby元数据刷新 v1.7.2
|
||||
- Emby媒体标签 v1.2
|
||||
- 热门媒体订阅 v1.7
|
||||
- [HomePage v1.2](docs%2FHomePage.md)
|
||||
|
||||
@@ -447,11 +447,12 @@
|
||||
"name": "Emby元数据刷新",
|
||||
"description": "定时刷新Emby媒体库元数据,演职人员中文。",
|
||||
"labels": "Emby",
|
||||
"version": "1.7.1",
|
||||
"version": "1.7.2",
|
||||
"icon": "https://raw.githubusercontent.com/thsrite/MoviePilot-Plugins/main/icons/emby-icon.png",
|
||||
"author": "thsrite",
|
||||
"level": 1,
|
||||
"history": {
|
||||
"v1.7.2": "优化剧集演员刮削",
|
||||
"v1.7.1": "修复演员刮削",
|
||||
"v1.7": "精细化刷新,最新入库支持刷新单集演职人员中文",
|
||||
"v1.6": "修复豆瓣查询bug,丰富日志",
|
||||
|
||||
@@ -36,7 +36,7 @@ class EmbyMetaRefresh(_PluginBase):
|
||||
# 插件图标
|
||||
plugin_icon = "https://raw.githubusercontent.com/thsrite/MoviePilot-Plugins/main/icons/emby-icon.png"
|
||||
# 插件版本
|
||||
plugin_version = "1.7.1"
|
||||
plugin_version = "1.7.2"
|
||||
# 插件作者
|
||||
plugin_author = "thsrite"
|
||||
# 作者主页
|
||||
@@ -189,7 +189,8 @@ class EmbyMetaRefresh(_PluginBase):
|
||||
item_id=item.get("SeriesId") if str(item.get('Type')) == 'Episode' else item.get("Id"),
|
||||
title=item.get('SeriesName') if str(item.get('Type')) == 'Episode' else item.get('Name'),
|
||||
type=MediaType('电视剧' if str(item.get('Type')) == 'Episode' else '电影'),
|
||||
season=item.get("ParentIndexNumber") if str(item.get('Type')) == 'Episode' else None)
|
||||
season=item.get("ParentIndexNumber") if str(item.get('Type')) == 'Episode' else None
|
||||
)
|
||||
|
||||
# 是否有豆瓣演员信息
|
||||
if not douban_actors:
|
||||
@@ -310,13 +311,18 @@ class EmbyMetaRefresh(_PluginBase):
|
||||
peoples.append(info)
|
||||
else:
|
||||
peoples.append(people)
|
||||
|
||||
item_name = f"{iteminfo.get('Name')} ({iteminfo.get('ProductionYear')})" if iteminfo.get('Type') == 'Series' or iteminfo.get(
|
||||
'Type') == 'Movie' else f"{iteminfo.get('SeriesName')} ({iteminfo.get('ProductionYear')}) {iteminfo.get('SeasonName')} {iteminfo.get('Name')}"
|
||||
# 保存媒体项信息
|
||||
if peoples and need_update_people:
|
||||
iteminfo["People"] = peoples
|
||||
iteminfo["LockedFields"].append("Cast")
|
||||
flag = self.set_iteminfo(itemid=itemid, iteminfo=iteminfo)
|
||||
logger.info(f"更新媒体 {iteminfo.get('Name')} ({iteminfo.get('ProductionYear')}) 演员信息完成 {flag}")
|
||||
logger.info(
|
||||
f"更新媒体 {item_name} 演员信息完成 {flag}")
|
||||
else:
|
||||
logger.info(f"媒体 {iteminfo.get('Name')} ({iteminfo.get('ProductionYear')}) 演员信息无需更新")
|
||||
logger.info(f"媒体 {item_name} 演员信息无需更新")
|
||||
|
||||
def __update_people(self, people: dict, douban_actors: list = None) -> Optional[dict]:
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user