Skip to content

Commit

Permalink
Include season actors in episode actors
Browse files Browse the repository at this point in the history
We don't have season actors, only show actors or episode actors
So merge tmdb's season actors into episode actors
  • Loading branch information
phhusson committed Mar 4, 2024
1 parent 7d77716 commit c543156
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/com/archos/mediascraper/themoviedb3/ShowIdEpisodes.java
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ public static Map<String, EpisodeTags> getEpisodes(int showId, List<TvEpisode> t
if (tvSeasons != null) {
tvSeason = tvSeasons.get(tvEpisode.season_number);
if (tvSeason != null) {
for (CastMember seasonStar : tvSeason.credits.cast)
episodeTags.addActorIfAbsent(seasonStar.name, seasonStar.character);
// note tvSeason.poster_path can be null when show has only one serie e.g. https://api.themoviedb.org/3/tv/93911/season/1?language=en&api_key=051012651ba326cf5b1e2f482342eaa2
if (tvSeason.poster_path != null) {
episodeTags.addDefaultPoster(ShowIdImagesParser.genPoster(showTags.getTitle(), tvSeason.poster_path, language, false, context));
Expand Down

0 comments on commit c543156

Please sign in to comment.