|
|
@ -8,7 +8,7 @@ class ContentCardExample extends HTMLElement {
|
|
|
|
movieElems = [];
|
|
|
|
movieElems = [];
|
|
|
|
detailElem = undefined;
|
|
|
|
detailElem = undefined;
|
|
|
|
data = {};
|
|
|
|
data = {};
|
|
|
|
requestTimeout = 1000;
|
|
|
|
requestTimeout = 3000;
|
|
|
|
loading = false;
|
|
|
|
loading = false;
|
|
|
|
maxCount = false;
|
|
|
|
maxCount = false;
|
|
|
|
|
|
|
|
|
|
|
@ -226,7 +226,6 @@ class ContentCardExample extends HTMLElement {
|
|
|
|
this.render(hass);
|
|
|
|
this.render(hass);
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch((err) => {
|
|
|
|
.catch((err) => {
|
|
|
|
console.log("err!");
|
|
|
|
|
|
|
|
this.error =
|
|
|
|
this.error =
|
|
|
|
"Plex sections requests did not respond within " +
|
|
|
|
"Plex sections requests did not respond within " +
|
|
|
|
this.requestTimeout / 1000 +
|
|
|
|
this.requestTimeout / 1000 +
|
|
|
@ -235,7 +234,6 @@ class ContentCardExample extends HTMLElement {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch((err) => {
|
|
|
|
.catch((err) => {
|
|
|
|
console.log("err!!!");
|
|
|
|
|
|
|
|
this.error =
|
|
|
|
this.error =
|
|
|
|
"Plex server did not respond within " +
|
|
|
|
"Plex server did not respond within " +
|
|
|
|
this.requestTimeout / 1000 +
|
|
|
|
this.requestTimeout / 1000 +
|
|
|
|