|
|
@ -19918,6 +19918,7 @@ class PlexMeetsHomeAssistant extends HTMLElement {
|
|
|
|
this.detailsShown = false;
|
|
|
|
this.detailsShown = false;
|
|
|
|
this.runBefore = '';
|
|
|
|
this.runBefore = '';
|
|
|
|
this.playTrailer = true;
|
|
|
|
this.playTrailer = true;
|
|
|
|
|
|
|
|
this.showExtras = true;
|
|
|
|
this.runAfter = '';
|
|
|
|
this.runAfter = '';
|
|
|
|
this.columnsCount = 0;
|
|
|
|
this.columnsCount = 0;
|
|
|
|
this.renderedItems = 0;
|
|
|
|
this.renderedItems = 0;
|
|
|
@ -20811,7 +20812,6 @@ class PlexMeetsHomeAssistant extends HTMLElement {
|
|
|
|
}, 200);
|
|
|
|
}, 200);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
else {
|
|
|
|
const extras = dataDetails.Extras.Metadata;
|
|
|
|
|
|
|
|
this.episodesElemFreshlyLoaded = true;
|
|
|
|
this.episodesElemFreshlyLoaded = true;
|
|
|
|
if (this.episodesElem) {
|
|
|
|
if (this.episodesElem) {
|
|
|
|
this.episodesElemHidden = false;
|
|
|
|
this.episodesElemHidden = false;
|
|
|
@ -20819,11 +20819,14 @@ class PlexMeetsHomeAssistant extends HTMLElement {
|
|
|
|
this.episodesElem.innerHTML = '';
|
|
|
|
this.episodesElem.innerHTML = '';
|
|
|
|
this.episodesElem.style.transition = `0s`;
|
|
|
|
this.episodesElem.style.transition = `0s`;
|
|
|
|
this.episodesElem.style.top = `${top + 2000}px`;
|
|
|
|
this.episodesElem.style.top = `${top + 2000}px`;
|
|
|
|
lodash.forEach(extras, extrasData => {
|
|
|
|
if (this.showExtras) {
|
|
|
|
if (this.episodesElem && this.playController) {
|
|
|
|
const extras = dataDetails.Extras.Metadata;
|
|
|
|
this.episodesElem.append(createEpisodesView(this.playController, this.plexProtocol, this.config.ip, this.config.port, this.config.token, extrasData));
|
|
|
|
lodash.forEach(extras, extrasData => {
|
|
|
|
}
|
|
|
|
if (this.episodesElem && this.playController) {
|
|
|
|
});
|
|
|
|
this.episodesElem.append(createEpisodesView(this.playController, this.plexProtocol, this.config.ip, this.config.port, this.config.token, extrasData));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
clearInterval(this.episodesLoadTimeout);
|
|
|
|
clearInterval(this.episodesLoadTimeout);
|
|
|
|
this.episodesLoadTimeout = setTimeout(() => {
|
|
|
|
this.episodesLoadTimeout = setTimeout(() => {
|
|
|
|
if (this.episodesElem) {
|
|
|
|
if (this.episodesElem) {
|
|
|
@ -21053,6 +21056,9 @@ class PlexMeetsHomeAssistant extends HTMLElement {
|
|
|
|
if (!lodash.isNil(config.playTrailer)) {
|
|
|
|
if (!lodash.isNil(config.playTrailer)) {
|
|
|
|
this.playTrailer = config.playTrailer;
|
|
|
|
this.playTrailer = config.playTrailer;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!lodash.isNil(config.showExtras)) {
|
|
|
|
|
|
|
|
this.showExtras = config.showExtras;
|
|
|
|
|
|
|
|
}
|
|
|
|
this.plex = new Plex(this.config.ip, this.config.port, this.config.token, this.plexProtocol, this.config.sort);
|
|
|
|
this.plex = new Plex(this.config.ip, this.config.port, this.config.token, this.plexProtocol, this.config.sort);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
this.getCardSize = () => {
|
|
|
|
this.getCardSize = () => {
|
|
|
|