|
|
|
@ -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) {
|
|
|
|
|