Update: Remove left over console logs

pull/16/head
Juraj Nyíri 3 years ago
parent a97ac0ac85
commit c141521dee

@ -19054,10 +19054,9 @@ const getOffset = (el) => {
return { top: y, left: x }; return { top: y, left: x };
}; };
const findTrailerURL = (movieData) => { const findTrailerURL = (movieData) => {
console.log(movieData.Extras);
console.log(movieData.Extras.Metadata);
let foundURL = ''; let foundURL = '';
if (movieData.Extras && movieData.Extras.Metadata && movieData.Extras.Metadata.length > 0) { if (movieData.Extras && movieData.Extras.Metadata && movieData.Extras.Metadata.length > 0) {
// eslint-disable-next-line consistent-return
lodash.forEach(movieData.Extras.Metadata, extra => { lodash.forEach(movieData.Extras.Metadata, extra => {
if (extra.subtype === 'trailer') { if (extra.subtype === 'trailer') {
foundURL = extra.Media[0].Part[0].key; foundURL = extra.Media[0].Part[0].key;
@ -20441,7 +20440,6 @@ class PlexMeetsHomeAssistant extends HTMLElement {
}); });
} }
} }
console.log();
const extras = movieDetails.Extras.Metadata; const extras = movieDetails.Extras.Metadata;
this.episodesElemFreshlyLoaded = true; this.episodesElemFreshlyLoaded = true;
if (this.episodesElem) { if (this.episodesElem) {

@ -44,10 +44,9 @@ const getOffset = (el: Element): Record<string, any> => {
}; };
const findTrailerURL = (movieData: Record<string, any>): string => { const findTrailerURL = (movieData: Record<string, any>): string => {
console.log(movieData.Extras);
console.log(movieData.Extras.Metadata);
let foundURL = ''; let foundURL = '';
if (movieData.Extras && movieData.Extras.Metadata && movieData.Extras.Metadata.length > 0) { if (movieData.Extras && movieData.Extras.Metadata && movieData.Extras.Metadata.length > 0) {
// eslint-disable-next-line consistent-return
_.forEach(movieData.Extras.Metadata, extra => { _.forEach(movieData.Extras.Metadata, extra => {
if (extra.subtype === 'trailer') { if (extra.subtype === 'trailer') {
foundURL = extra.Media[0].Part[0].key; foundURL = extra.Media[0].Part[0].key;

@ -861,8 +861,6 @@ class PlexMeetsHomeAssistant extends HTMLElement {
} }
} }
console.log();
const extras = movieDetails.Extras.Metadata; const extras = movieDetails.Extras.Metadata;
this.episodesElemFreshlyLoaded = true; this.episodesElemFreshlyLoaded = true;

Loading…
Cancel
Save