Reduced the filter values to return more results.
This commit is contained in:
@@ -26,7 +26,7 @@ class TMDB {
|
|||||||
try {
|
try {
|
||||||
// We want to filter because there are movies really low rated that are not interesting to us.
|
// We want to filter because there are movies really low rated that are not interesting to us.
|
||||||
let filteredTmdbItems = response.results.filter(function(tmdbResultItem) {
|
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
|
// Here we convert the filtered result from the tmdb api to seaonsed objects
|
||||||
|
|||||||
Reference in New Issue
Block a user