Added popularity and vote_count to movie and show object and added a new check for name and title of movie

This commit is contained in:
2017-09-02 22:51:49 +02:00
parent 17dd66e9ac
commit 84a897da6e
2 changed files with 14 additions and 3 deletions

View File

@@ -28,7 +28,7 @@ class RequestRepository {
return Promise.each(plexMedia, function(plexMovie) {
if (tmdbMovie.title == plexMovie.title && tmdbMovie.year == plexMovie.year) {
tmdbMovie.matchedInPlex = true;
console.log(tmdbMovie.title + ' : ' + tmdbMovie.year);
// console.log('Matched: ' + tmdbMovie.title + ' : ' + tmdbMovie.year);
}
return tmdbMovie;
})
@@ -41,7 +41,6 @@ class RequestRepository {
})
})
.catch((error) => {
console.log(error);
return error;
});
}