From dacd44a8f551e958f1724104ca3353bfa5847bff Mon Sep 17 00:00:00 2001 From: KevinMidboe Date: Sat, 2 Sep 2017 22:53:04 +0200 Subject: [PATCH] Changed the value of the filter to be vote_count >= 80 or popularity > 18 --- seasoned_api/src/tmdb/tmdb.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/seasoned_api/src/tmdb/tmdb.js b/seasoned_api/src/tmdb/tmdb.js index 6d9f18f..a536381 100644 --- a/seasoned_api/src/tmdb/tmdb.js +++ b/seasoned_api/src/tmdb/tmdb.js @@ -16,9 +16,10 @@ class TMDB { .then((reponse) => { try { return reponse.results.filter(function(item) { - return ((item.vote_count >= 20 || item.popularity > 2) && (item.release_date !== undefined || item.first_air_date !== undefined)) + return ((item.vote_count >= 80 || item.popularity > 18) && (item.release_date !== undefined || item.first_air_date !== undefined)) }).map(convertTmdbToSeasoned); } catch (parseError) { + console.log(parseError) throw new Error('Could not parse result.'); } });