Removed static tag in tmdb functions.

This commit is contained in:
2018-02-07 14:13:50 +01:00
parent a40d4f7cd5
commit 3ca3c06824

View File

@@ -92,7 +92,7 @@ class TMDB {
})); }));
} }
static tmdbMethod(apiMethod, type) { tmdbMethod(apiMethod, type) {
const method = TMDB_METHODS[apiMethod][type]; const method = TMDB_METHODS[apiMethod][type];
if (method !== undefined) return method; if (method !== undefined) return method;
throw new Error('Could not find tmdb api method.'); throw new Error('Could not find tmdb api method.');
@@ -104,7 +104,7 @@ class TMDB {
* @param {type} The type declared in listSearch. * @param {type} The type declared in listSearch.
* @returns {Promise} dict with tmdb results, mapped as movie/show objects. * @returns {Promise} dict with tmdb results, mapped as movie/show objects.
*/ */
static mapResults(response, type) { mapResults(response, type) {
return Promise.resolve() return Promise.resolve()
.then(() => { .then(() => {
const mappedResults = response.results.map(result => convertTmdbToSeasoned(result, type)); const mappedResults = response.results.map(result => convertTmdbToSeasoned(result, type));