emby/jellyfin异常数据兼容

This commit is contained in:
jxxghp 2023-09-03 09:50:05 +08:00
parent 082ec8d718
commit b72aa314b6
2 changed files with 4 additions and 4 deletions

View File

@ -318,7 +318,7 @@ class Emby(metaclass=Singleton):
if not item_id: if not item_id:
return {} return {}
# 验证tmdbid是否相同 # 验证tmdbid是否相同
item_tmdbid = self.get_iteminfo(item_id).get("ProviderIds", {}).get("Tmdb") item_tmdbid = (self.get_iteminfo(item_id).get("ProviderIds") or {}).get("Tmdb")
if tmdb_id and item_tmdbid: if tmdb_id and item_tmdbid:
if str(tmdb_id) != str(item_tmdbid): if str(tmdb_id) != str(item_tmdbid):
return {} return {}

View File

@ -293,7 +293,7 @@ class Jellyfin(metaclass=Singleton):
if not item_id: if not item_id:
return {} return {}
# 验证tmdbid是否相同 # 验证tmdbid是否相同
item_tmdbid = self.get_iteminfo(item_id).get("ProviderIds", {}).get("Tmdb") item_tmdbid = (self.get_iteminfo(item_id).get("ProviderIds") or {}).get("Tmdb")
if tmdb_id and item_tmdbid: if tmdb_id and item_tmdbid:
if str(tmdb_id) != str(item_tmdbid): if str(tmdb_id) != str(item_tmdbid):
return {} return {}