NuvioStreaming/composeApp
Stéphane 6e84b3ac36 fix(tmdb): localize collection part artwork via /images endpoint
TMDB's `collection/{id}?language=fr` returns one default `poster_path` /
`backdrop_path` per part — almost always the English-favored asset
regardless of the language query param. The only way to actually get
artwork in the user's language is to call
`/movie/{id}/images?include_image_language=fr,null,en` separately and
pick the best localized poster/backdrop.

Two consumers were affected:

- `TmdbCollectionSourceResolver.resolveCollection` — Collection-folder
  rows on home (user-defined "Star Wars Saga", "Marvel", etc.) showed
  English posters even when the app's TMDB language is `fr`.
- `TmdbMetadataService.fetchCollection` — the "Saga" / "Belongs to
  collection" row on movie detail pages had the same problem.

Both now fan out one parallel `/images` call per part, ranked through the
existing `selectBestLocalizedImagePath` helper (already used for logos),
and fall back to `part.posterPath` / `part.backdropPath` only when no
localized image is available.

The new helper `TmdbMetadataService.fetchLocalizedArtwork()` is shared
and cached per `(tmdbId, mediaType, language)`. For English locales the
extra call is skipped — the default poster path is already English-favored.

Mirrors the equivalent fix in NuvioTV (the `fetchMovieCollection` path
already does this; `resolveCollection` did not).
2026-05-13 19:33:48 +02:00
..
libs update quick-js aar 2026-05-04 01:19:51 +05:30
src fix(tmdb): localize collection part artwork via /images endpoint 2026-05-13 19:33:48 +02:00
build.gradle.kts fix(image): register SvgDecoder so SVG logos actually render 2026-05-08 19:41:54 +02:00
proguard-rules.pro minify build 2026-04-13 02:44:36 +05:30