diff --git a/dist/plex-meets-homeassistant.js b/dist/plex-meets-homeassistant.js index e98ec55..a1025f0 100644 --- a/dist/plex-meets-homeassistant.js +++ b/dist/plex-meets-homeassistant.js @@ -19528,7 +19528,7 @@ class PlexMeetsHomeAssistant extends HTMLElement { lodash.forEach(this.data[this.config.libraryName], (movieData) => { if (!this.maxCount || count < this.maxCount) { count += 1; - this.content.appendChild(this.getMovieElement(movieData, this.data.serverID)); + this.content.appendChild(this.getMovieElement(movieData)); } else { return true; @@ -19946,7 +19946,7 @@ class PlexMeetsHomeAssistant extends HTMLElement { } return 0; }; - this.getMovieElement = (data, serverID) => { + this.getMovieElement = (data) => { const thumbURL = `${this.plexProtocol}://${this.config.ip}:${this.config.port}/photo/:/transcode?width=${CSS_STYLE.expandedWidth}&height=${CSS_STYLE.expandedHeight}&minSize=1&upscale=1&url=${data.thumb}&X-Plex-Token=${this.config.token}`; const container = document.createElement('div'); container.className = 'container'; diff --git a/src/plex-meets-homeassistant.ts b/src/plex-meets-homeassistant.ts index f81aacb..e82773e 100644 --- a/src/plex-meets-homeassistant.ts +++ b/src/plex-meets-homeassistant.ts @@ -199,7 +199,7 @@ class PlexMeetsHomeAssistant extends HTMLElement { _.forEach(this.data[this.config.libraryName], (movieData: Record) => { if (!this.maxCount || count < this.maxCount) { count += 1; - this.content.appendChild(this.getMovieElement(movieData, this.data.serverID)); + this.content.appendChild(this.getMovieElement(movieData)); } else { return true; } @@ -667,7 +667,7 @@ class PlexMeetsHomeAssistant extends HTMLElement { return 0; }; - getMovieElement = (data: any, serverID: string): HTMLDivElement => { + getMovieElement = (data: any): HTMLDivElement => { const thumbURL = `${this.plexProtocol}://${this.config.ip}:${this.config.port}/photo/:/transcode?width=${CSS_STYLE.expandedWidth}&height=${CSS_STYLE.expandedHeight}&minSize=1&upscale=1&url=${data.thumb}&X-Plex-Token=${this.config.token}`; const container = document.createElement('div');