Now does multisearch instead of just moviesearch

This commit is contained in:
2017-04-21 16:57:17 +02:00
parent 98161f0616
commit cbe06abf88

View File

@@ -9,7 +9,7 @@ class TMDB {
search(text, page = 1) {
const query = { query: text, page };
return Promise.resolve()
.then(() => this.tmdb('searchMovie', query))
.then(() => this.tmdb('searchMulti', query))
.catch(() => { throw new Error('Could not search for movies.'); })
.then((reponse) => {
try {