Update: Cleanup

live_tv
Juraj Nyíri 3 years ago
parent 0bac7f089e
commit 0a5705c61a

@ -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`;

@ -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.

@ -103,7 +103,6 @@ class PlayController {
};
play = async (data: Record<string, any>, instantPlay = false): Promise<void> => {
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,

@ -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';

Loading…
Cancel
Save