mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
chg: feat: add localization to collections as well
This commit is contained in:
parent
eaa09aba3b
commit
f121b718a9
@ -742,6 +742,8 @@ class TheMovieDatabase(Provider):
|
||||
f"collection/{provider_id}",
|
||||
params={
|
||||
"language": lng.to_tag(),
|
||||
"append_to_response": "images",
|
||||
"include_image_language": f"{lng.language},null,en",
|
||||
},
|
||||
)
|
||||
logger.debug("TMDb responded: %s", collection)
|
||||
@ -757,13 +759,9 @@ class TheMovieDatabase(Provider):
|
||||
translation = CollectionTranslation(
|
||||
name=collection["name"],
|
||||
overview=collection["overview"],
|
||||
posters=[
|
||||
f"https://image.tmdb.org/t/p/original{collection['poster_path']}"
|
||||
],
|
||||
posters=self.get_best_image(collection, lng, "posters"),
|
||||
logos=[],
|
||||
thumbnails=[
|
||||
f"https://image.tmdb.org/t/p/original{collection['backdrop_path']}"
|
||||
],
|
||||
thumbnails=self.get_best_image(collection, lng, "backdrops"),
|
||||
)
|
||||
ret.translations = {lng.to_tag(): translation}
|
||||
return ret
|
||||
|
Loading…
x
Reference in New Issue
Block a user