mirror of
https://github.com/thsrite/MoviePilot-Plugins.git
synced 2026-03-27 10:05:57 +00:00
fix 修复查询tmdb封面逻辑
This commit is contained in:
@@ -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插件独占模式",
|
||||
|
||||
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user