Update: Raise request timeout from plex to 3s

pull/16/head
Juraj Nyíri 4 years ago
parent e7a120f824
commit 51cdab5d21

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

Loading…
Cancel
Save