fix 修复查询tmdb封面逻辑

This commit is contained in:
thsrite
2024-12-23 14:33:24 +08:00
parent 165e1b45f1
commit 8ed191e8ba
2 changed files with 5 additions and 3 deletions

View File

@@ -3,11 +3,12 @@
"name": "Emby元数据刷新",
"description": "定时刷新Emby媒体库元数据演职人员中文。",
"labels": "Emby",
"version": "2.1.9",
"version": "2.2.0",
"icon": "https://raw.githubusercontent.com/thsrite/MoviePilot-Plugins/main/icons/emby-icon.png",
"author": "thsrite",
"level": 1,
"history": {
"v2.2.0": "修复查询tmdb封面逻辑",
"v2.1.9": "优化刷新封面逻辑原则是Emby无封面且TMDB有封面就刷新",
"v2.1.7": "兼容Emby插件新名称神医助手",
"v2.1.6": "联动Emby Strm Assistant插件独占模式",

View File

@@ -37,7 +37,7 @@ class EmbyMetaRefresh(_PluginBase):
# 插件图标
plugin_icon = "https://raw.githubusercontent.com/thsrite/MoviePilot-Plugins/main/icons/emby-icon.png"
# 插件版本
plugin_version = "2.1.9"
plugin_version = "2.2.0"
# 插件作者
plugin_author = "thsrite"
# 作者主页
@@ -230,7 +230,8 @@ class EmbyMetaRefresh(_PluginBase):
# 判断下tmdb有没有封面没有则不刷新封面
tv_info = self.tmdbapi.match(name=item.get('SeriesName'),
mtype=MediaType.TV,
year=item.get('ProductionYear'))
year=str(item.get('ProductionYear')))
logger.info(f"电视剧 {item.get('SeriesName')} 信息:{tv_info}")
if tv_info:
episode_info = TmdbApi().get_tv_episode_detail(tv_info["id"],
item.get('ParentIndexNumber'),