feat(tv): show cast for the entire show instead of only the last season (#778)

This uses TMDb's `aggregate_credits` instead of `credits` to get the show's cast for all seasons.

Fixes #775
This commit is contained in:
Danshil Mungur
2021-01-31 04:50:15 +04:00
committed by GitHub
parent e2b800000d
commit b239598e64
3 changed files with 28 additions and 4 deletions

View File

@@ -3,7 +3,7 @@ import {
ProductionCompany,
Cast,
Crew,
mapCast,
mapAggregateCast,
mapCrew,
ExternalIds,
mapExternalIds,
@@ -193,7 +193,7 @@ export const mapTvDetails = (
: undefined,
posterPath: show.poster_path,
credits: {
cast: show.credits.cast.map(mapCast),
cast: show.aggregate_credits.cast.map(mapAggregateCast),
crew: show.credits.crew.map(mapCrew),
},
externalIds: mapExternalIds(show.external_ids),