Skip to content

Commit

Permalink
fix(api): handle non-existent ratings on IMDb (#822)
Browse files Browse the repository at this point in the history
  • Loading branch information
gauthier-th authored Aug 5, 2024
1 parent a2c2d26 commit 74a2d25
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion server/api/rating/imdbRadarrProxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,11 @@ class IMDBRadarrProxy extends ExternalAPI {
`/movie/imdb/${IMDBid}`
);

if (!data?.length || data[0].ImdbId !== IMDBid) {
if (
!data?.length ||
data[0].ImdbId !== IMDBid ||
!data[0].MovieRatings.Imdb
) {
return null;
}

Expand Down

0 comments on commit 74a2d25

Please sign in to comment.