Skip to content

Commit

Permalink
Fix nova-video-player/aos-AVP#1243 seen on sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
courville committed Jul 7, 2024
1 parent 5ced967 commit 38ceb20
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/com/archos/mediascraper/themoviedb3/ShowIdParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,12 @@ public static ShowTags getResult(TvShow serie, String year, Context context) {

log.debug("getResult: found title=" + serie.name);

if (serie.content_ratings.results != null)
if (serie.content_ratings != null && serie.content_ratings.results != null)
for (ContentRating results: serie.content_ratings.results)
if (results.iso_3166_1.equals("US"))
if (results.iso_3166_1 != null && results.iso_3166_1.equals("US"))
result.setContentRating(results.rating);

result.setImdbId(serie.external_ids.imdb_id);
if (serie.external_ids != null) result.setImdbId(serie.external_ids.imdb_id);
result.setOnlineId(serie.id);
log.debug("getResult: onlineId=" + serie.id + ", imdbId=" + serie.external_ids.imdb_id);
result.setGenres(getLocalizedGenres(serie.genres));
Expand Down

0 comments on commit 38ceb20

Please sign in to comment.