From 8b5b8bb0b7b38be45cbd2520060f2eef89fc6eb7 Mon Sep 17 00:00:00 2001 From: KevinMidboe Date: Wed, 27 Sep 2017 13:49:49 +0200 Subject: [PATCH] Reduced the filter values to return more results. --- seasoned_api/src/tmdb/tmdb.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seasoned_api/src/tmdb/tmdb.js b/seasoned_api/src/tmdb/tmdb.js index 5e04dd4..701d2d1 100644 --- a/seasoned_api/src/tmdb/tmdb.js +++ b/seasoned_api/src/tmdb/tmdb.js @@ -26,7 +26,7 @@ class TMDB { try { // We want to filter because there are movies really low rated that are not interesting to us. let filteredTmdbItems = response.results.filter(function(tmdbResultItem) { - return ((tmdbResultItem.vote_count >= 80 || tmdbResultItem.popularity > 18) && (tmdbResultItem.release_date !== undefined || tmdbResultItem.first_air_date !== undefined)) + return ((tmdbResultItem.vote_count >= 40 || tmdbResultItem.popularity > 8) && (tmdbResultItem.release_date !== undefined || tmdbResultItem.first_air_date !== undefined)) }) // Here we convert the filtered result from the tmdb api to seaonsed objects