diff --git a/dist/plex-meets-homeassistant.js b/dist/plex-meets-homeassistant.js index f6d9c1a..057730d 100644 --- a/dist/plex-meets-homeassistant.js +++ b/dist/plex-meets-homeassistant.js @@ -17205,9 +17205,9 @@ const CSS_STYLE = { }; const supported = { kodi: ['movie', 'episode'], - androidtv: ['movie', 'show', 'season', 'episode', 'clip', 'epg'], - plexPlayer: ['movie', 'show', 'season', 'episode', 'clip', 'epg'], - cast: ['movie', 'episode', 'epg'] + androidtv: ['movie', 'show', 'season', 'episode', 'clip'], + plexPlayer: ['movie', 'show', 'season', 'episode', 'clip'], + cast: ['movie', 'episode'] }; var bind = function bind(fn, thisArg) { @@ -19283,7 +19283,6 @@ class PlayController { return foundResult; }; this.play = async (data, instantPlay = false) => { - console.log('play'); if (lodash.isArray(this.runBefore)) { const entityID = `${this.runBefore[0]}.${this.runBefore[1]}`; await this.hass.callService(this.runBefore[0], this.runBefore[1], {}); @@ -19299,7 +19298,6 @@ class PlayController { processData = data.epg; provider = ''; } - console.log(processData); switch (entity.key) { case 'kodi': await this.playViaKodi(entity.value, processData, processData.type); @@ -19498,7 +19496,6 @@ class PlayController { command += ' --ez "android.intent.extra.START_PLAYBACK" true'; } command += ` -a android.intent.action.VIEW 'plex://server://${serverID}/${provider}${mediaID}'`; - console.log(command); this.hass.callService('androidtv', 'adb_command', { // eslint-disable-next-line @typescript-eslint/camelcase entity_id: entityName, @@ -22378,6 +22375,9 @@ class PlexMeetsHomeAssistant extends HTMLElement { else { container.style.height = `${CSS_STYLE.height + 30}px`; } + if (!lodash.isNil(data.channelCallSign)) { + container.style.marginBottom = '50px'; + } const movieElem = document.createElement('div'); movieElem.className = 'movieElem'; movieElem.style.width = `${CSS_STYLE.width}px`; diff --git a/src/const.ts b/src/const.ts index 1c65a35..12de975 100644 --- a/src/const.ts +++ b/src/const.ts @@ -10,9 +10,9 @@ const CSS_STYLE: any = { const supported: any = { kodi: ['movie', 'episode'], - androidtv: ['movie', 'show', 'season', 'episode', 'clip', 'epg'], - plexPlayer: ['movie', 'show', 'season', 'episode', 'clip', 'epg'], - cast: ['movie', 'episode', 'epg'] + androidtv: ['movie', 'show', 'season', 'episode', 'clip'], + plexPlayer: ['movie', 'show', 'season', 'episode', 'clip'], + cast: ['movie', 'episode'] }; const LOREM_IPSUM = `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec semper risus vitae aliquet interdum. Nulla facilisi. Pellentesque viverra sagittis lorem eget aliquet. Cras vehicula, purus vel consectetur mattis, ipsum arcu ullamcorper mi, id viverra purus ex eu dolor. Integer vehicula lacinia sem convallis iaculis. Nulla fermentum erat interdum, efficitur felis in, mollis neque. Vivamus luctus metus eget nisl pellentesque, placerat elementum magna eleifend. diff --git a/src/modules/PlayController.ts b/src/modules/PlayController.ts index 88baf99..91e04ae 100644 --- a/src/modules/PlayController.ts +++ b/src/modules/PlayController.ts @@ -103,7 +103,6 @@ class PlayController { }; play = async (data: Record, instantPlay = false): Promise => { - console.log('play'); if (_.isArray(this.runBefore)) { const entityID = `${this.runBefore[0]}.${this.runBefore[1]}`; await this.hass.callService(this.runBefore[0], this.runBefore[1], {}); @@ -121,7 +120,6 @@ class PlayController { processData = data.epg; provider = ''; } - console.log(processData); switch (entity.key) { case 'kodi': await this.playViaKodi(entity.value, processData, processData.type); @@ -343,8 +341,6 @@ class PlayController { command += ` -a android.intent.action.VIEW 'plex://server://${serverID}/${provider}${mediaID}'`; - console.log(command); - this.hass.callService('androidtv', 'adb_command', { // eslint-disable-next-line @typescript-eslint/camelcase entity_id: entityName, diff --git a/src/plex-meets-homeassistant.ts b/src/plex-meets-homeassistant.ts index 8c7ecf4..0a39bc0 100644 --- a/src/plex-meets-homeassistant.ts +++ b/src/plex-meets-homeassistant.ts @@ -1613,6 +1613,9 @@ class PlexMeetsHomeAssistant extends HTMLElement { } else { container.style.height = `${CSS_STYLE.height + 30}px`; } + if (!_.isNil(data.channelCallSign)) { + container.style.marginBottom = '50px'; + } const movieElem = document.createElement('div'); movieElem.className = 'movieElem';