Lowered the tollerance for what objects we choose to look at by tmdb. That is we only accept items that have some value of vote or popularity.

This commit is contained in:
2017-10-23 15:39:28 +02:00
parent d836dd01d3
commit 498bd13a1f

View File

@@ -37,7 +37,7 @@ class TMDB {
.then((response) => {
try {
let filteredTmdbItems = response.results.filter(function(tmdbResultItem) {
return ((tmdbResultItem.vote_count >= 40 || tmdbResultItem.popularity > 8) && (tmdbResultItem.release_date !== undefined || tmdbResultItem.first_air_date !== undefined))
return ((tmdbResultItem.vote_count >= 10 || tmdbResultItem.popularity > 2) && (tmdbResultItem.release_date !== undefined || tmdbResultItem.first_air_date !== undefined))
})
let seasonedItems = filteredTmdbItems.map((tmdbItem) => {