fix: handle non-existent rottentomatoes rating (#1018)

This fixes a bug where some media don't have any rottentomatoes ratings.
This commit is contained in:
Gauthier
2024-10-17 12:37:19 +02:00
committed by GitHub
parent 9de304d17a
commit a351264b87

View File

@@ -182,7 +182,7 @@ class RottenTomatoes extends ExternalAPI {
); );
} }
if (!tvshow) { if (!tvshow || !tvshow.rottenTomatoes) {
return null; return null;
} }