diff --git a/dist/plex-meets-homeassistant.js b/dist/plex-meets-homeassistant.js index bf9e072..f603378 100644 --- a/dist/plex-meets-homeassistant.js +++ b/dist/plex-meets-homeassistant.js @@ -19054,10 +19054,9 @@ const getOffset = (el) => { return { top: y, left: x }; }; const findTrailerURL = (movieData) => { - console.log(movieData.Extras); - console.log(movieData.Extras.Metadata); let foundURL = ''; if (movieData.Extras && movieData.Extras.Metadata && movieData.Extras.Metadata.length > 0) { + // eslint-disable-next-line consistent-return lodash.forEach(movieData.Extras.Metadata, extra => { if (extra.subtype === 'trailer') { foundURL = extra.Media[0].Part[0].key; @@ -20441,7 +20440,6 @@ class PlexMeetsHomeAssistant extends HTMLElement { }); } } - console.log(); const extras = movieDetails.Extras.Metadata; this.episodesElemFreshlyLoaded = true; if (this.episodesElem) { diff --git a/src/modules/utils.ts b/src/modules/utils.ts index 05e29e6..2e5355a 100644 --- a/src/modules/utils.ts +++ b/src/modules/utils.ts @@ -44,10 +44,9 @@ const getOffset = (el: Element): Record => { }; const findTrailerURL = (movieData: Record): string => { - console.log(movieData.Extras); - console.log(movieData.Extras.Metadata); let foundURL = ''; if (movieData.Extras && movieData.Extras.Metadata && movieData.Extras.Metadata.length > 0) { + // eslint-disable-next-line consistent-return _.forEach(movieData.Extras.Metadata, extra => { if (extra.subtype === 'trailer') { foundURL = extra.Media[0].Part[0].key; diff --git a/src/plex-meets-homeassistant.ts b/src/plex-meets-homeassistant.ts index 1646460..6f2f615 100644 --- a/src/plex-meets-homeassistant.ts +++ b/src/plex-meets-homeassistant.ts @@ -861,8 +861,6 @@ class PlexMeetsHomeAssistant extends HTMLElement { } } - console.log(); - const extras = movieDetails.Extras.Metadata; this.episodesElemFreshlyLoaded = true;