mirror of
https://github.com/fallenbagel/jellyseerr.git
synced 2026-01-04 21:58:39 -05:00
fix(api): handle non-existent ratings on IMDb (#822)
This commit is contained in:
@@ -175,7 +175,11 @@ class IMDBRadarrProxy extends ExternalAPI {
|
|||||||
`/movie/imdb/${IMDBid}`
|
`/movie/imdb/${IMDBid}`
|
||||||
);
|
);
|
||||||
|
|
||||||
if (!data?.length || data[0].ImdbId !== IMDBid) {
|
if (
|
||||||
|
!data?.length ||
|
||||||
|
data[0].ImdbId !== IMDBid ||
|
||||||
|
!data[0].MovieRatings.Imdb
|
||||||
|
) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user