mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-31 12:14:46 -04:00
Fix missing imdb/tvdb id
This commit is contained in:
parent
a1a5e665fb
commit
1f518c2d33
@ -199,7 +199,7 @@ class TheMovieDatabase(Provider):
|
|||||||
params={
|
params={
|
||||||
"language": lng,
|
"language": lng,
|
||||||
"append_to_response": "alternative_titles,videos,credits,keywords,images,external_ids",
|
"append_to_response": "alternative_titles,videos,credits,keywords,images,external_ids",
|
||||||
"include_image_language": f"{lng},null"
|
"include_image_language": f"{lng},null",
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
logging.debug("TMDb responded: %s", show)
|
logging.debug("TMDb responded: %s", show)
|
||||||
@ -232,8 +232,12 @@ class TheMovieDatabase(Provider):
|
|||||||
"imdb": MetadataID(
|
"imdb": MetadataID(
|
||||||
show["external_ids"]["imdb_id"],
|
show["external_ids"]["imdb_id"],
|
||||||
f"https://www.imdb.com/title/{show['external_ids']['imdb_id']}",
|
f"https://www.imdb.com/title/{show['external_ids']['imdb_id']}",
|
||||||
),
|
)
|
||||||
"tvdb": MetadataID(show["external_ids"]["tvdb_id"], link=None),
|
if show["external_ids"]["imdb_id"]
|
||||||
|
else None,
|
||||||
|
"tvdb": MetadataID(show["external_ids"]["tvdb_id"], link=None)
|
||||||
|
if show["external_ids"]["tvdb_id"]
|
||||||
|
else None,
|
||||||
},
|
},
|
||||||
seasons=[
|
seasons=[
|
||||||
self.to_season(x, language=lng, show_id=show["id"])
|
self.to_season(x, language=lng, show_id=show["id"])
|
||||||
|
@ -42,7 +42,7 @@ class Show:
|
|||||||
seasons: list[Season]
|
seasons: list[Season]
|
||||||
# TODO: handle staff
|
# TODO: handle staff
|
||||||
# staff: list[Staff]
|
# staff: list[Staff]
|
||||||
external_id: dict[str, MetadataID]
|
external_id: dict[str, MetadataID | None]
|
||||||
|
|
||||||
translations: dict[str, ShowTranslation] = field(default_factory=dict)
|
translations: dict[str, ShowTranslation] = field(default_factory=dict)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user