mirror of
https://github.com/fallenbagel/jellyseerr.git
synced 2026-01-07 23:28:02 -05:00
fix: handle non-existent rottentomatoes rating for movies (#1169)
This fixes a bug where some movies don't have any rottentomatoes ratings, which causes ratings from other services to not show
This commit is contained in:
@@ -128,7 +128,7 @@ class RottenTomatoes extends ExternalAPI {
|
|||||||
movie = contentResults.hits.find((movie) => movie.title === name);
|
movie = contentResults.hits.find((movie) => movie.title === name);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!movie) {
|
if (!movie?.rottenTomatoes) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user