Changed the value of the filter to be vote_count >= 80 or popularity > 18
This commit is contained in:
@@ -16,9 +16,10 @@ class TMDB {
|
|||||||
.then((reponse) => {
|
.then((reponse) => {
|
||||||
try {
|
try {
|
||||||
return reponse.results.filter(function(item) {
|
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);
|
}).map(convertTmdbToSeasoned);
|
||||||
} catch (parseError) {
|
} catch (parseError) {
|
||||||
|
console.log(parseError)
|
||||||
throw new Error('Could not parse result.');
|
throw new Error('Could not parse result.');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user