Update: Readme instructions about deck

pull/16/head
Juraj Nyíri 4 years ago
parent 9329eade29
commit e6e9971046

@ -31,6 +31,8 @@ More images [at the end of the readme](https://github.com/JurajNyiri/PlexMeetsHo
**port**: Enter port of your plex sever. **port**: Enter port of your plex sever.
**libraryName**: Name of the library you wish to render. Available special libraries: _Deck_
**protocol**: _Optional_ Protocol to use for Plex. Defaults to "http". **protocol**: _Optional_ Protocol to use for Plex. Defaults to "http".
**maxCount**: _Optional_ Maximum number of items to display in card. **maxCount**: _Optional_ Maximum number of items to display in card.
@ -67,7 +69,7 @@ type: 'custom:plex-meets-homeassistant'
token: QWdsqEXAMPLETOKENqwerty token: QWdsqEXAMPLETOKENqwerty
ip: 192.168.13.37 ip: 192.168.13.37
port: 32400 port: 32400
libraryName: Movies libraryName: Deck
protocol: http protocol: http
maxCount: 10 maxCount: 10
sort: title:desc sort: title:desc

@ -19870,7 +19870,7 @@ class PlexMeetsHomeAssistant extends HTMLElement {
lodash.forEach(plexSections, section => { lodash.forEach(plexSections, section => {
this.data[section.title1] = section.Metadata; this.data[section.title1] = section.Metadata;
}); });
this.data.deck = continueWatching.MediaContainer.Metadata; this.data.Deck = continueWatching.MediaContainer.Metadata;
if (this.data[this.config.libraryName] === undefined) { if (this.data[this.config.libraryName] === undefined) {
this.error = `Library name ${this.config.libraryName} does not exist.`; this.error = `Library name ${this.config.libraryName} does not exist.`;
} }

@ -151,7 +151,7 @@ class PlexMeetsHomeAssistant extends HTMLElement {
this.data[section.title1] = section.Metadata; this.data[section.title1] = section.Metadata;
}); });
this.data.deck = continueWatching.MediaContainer.Metadata; this.data.Deck = continueWatching.MediaContainer.Metadata;
if (this.data[this.config.libraryName] === undefined) { if (this.data[this.config.libraryName] === undefined) {
this.error = `Library name ${this.config.libraryName} does not exist.`; this.error = `Library name ${this.config.libraryName} does not exist.`;

Loading…
Cancel
Save