From 3a9131a022391699ae4598822c6e3c3a0f1edc35 Mon Sep 17 00:00:00 2001 From: Kevin Midboe Date: Tue, 2 Jul 2019 23:53:26 +0200 Subject: [PATCH] Removed, commented and added comments --- seasoned_api/src/plex/plexRepository.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/seasoned_api/src/plex/plexRepository.js b/seasoned_api/src/plex/plexRepository.js index 6bbc052..8f56695 100644 --- a/seasoned_api/src/plex/plexRepository.js +++ b/seasoned_api/src/plex/plexRepository.js @@ -31,6 +31,7 @@ class PlexRepository { return rp(options) .catch((error) => { + console.log(error) throw new Error('Unable to search plex.') }) .then(result => this.mapResults(result)) @@ -44,6 +45,7 @@ class PlexRepository { tmdb.matchedInPlex = false } else { + // console.log('plex and tmdb:', plexResult, '\n', tmdb) plexResult.results.map((plexItem) => { if (tmdb.title === plexItem.title && tmdb.year === plexItem.year) tmdb.matchedInPlex = true; @@ -57,7 +59,6 @@ class PlexRepository { mapResults(response) { return Promise.resolve() .then(() => { - console.log('plexResponse:', response) if (!response.MediaContainer.hasOwnProperty('Metadata')) return [[], 0]; const mappedResults = response.MediaContainer.Metadata.filter((element) => {