Skip to content

Commit

Permalink
Fixes nova-video-player/aos-AVP#1241 seen on sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
courville committed Jul 7, 2024
1 parent 1ffeb93 commit 8f7afea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/com/archos/mediascraper/themoviedb3/ShowIdEpisodes.java
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public static Map<String, EpisodeTags> getEpisodes(int showId, List<TvEpisode> t

if (tvSeasons != null) {
tvSeason = tvSeasons.get(tvEpisode.season_number);
if (tvSeason != null) {
if (tvSeason != null && tvSeason.credits != null && tvSeason.credits.cast != 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
Expand Down Expand Up @@ -128,7 +128,7 @@ public static Map<String, EpisodeTags> getEpisodes(int showId, List<TvEpisode> t
ShowIdSeasonSearchResult globalSeasonIdSearchResult = ShowIdSeasonSearch.getSeasonShowResponse(showId, tvEpisode.season_number, "en", adultScrape, tmdb);
// stack all episodes in en to find later the overview and name
if (globalSeasonIdSearchResult.status == ScrapeStatus.OKAY) {
if (globalSeasonIdSearchResult.tvSeason != null) {
if (globalSeasonIdSearchResult.tvSeason != null && globalSeasonIdSearchResult.tvSeason.episodes != null) {
for (TvEpisode globalTvEpisode : globalSeasonIdSearchResult.tvSeason.episodes)
globalEpisodes.put(globalTvEpisode.id, globalTvEpisode);
} else { // an error at this point is PARSER related
Expand Down

0 comments on commit 8f7afea

Please sign in to comment.