Handle an error when refreshing the servers list
This commit is contained in:
parent
54e7cb5718
commit
11746e3754
|
@ -161,7 +161,12 @@ module.exports = function PlexServer() {
|
||||||
if (!(blur > 0)) {
|
if (!(blur > 0)) {
|
||||||
blur = 0;
|
blur = 0;
|
||||||
}
|
}
|
||||||
|
if(this.chosenConnection) {
|
||||||
return `${this.chosenConnection.uri}/photo/:/transcode?url=${location}&X-Plex-Token=${this.accessToken}&height=${Math.floor(height)}&width=${Math.floor(width)}&blur=${blur}`;
|
return `${this.chosenConnection.uri}/photo/:/transcode?url=${location}&X-Plex-Token=${this.accessToken}&height=${Math.floor(height)}&width=${Math.floor(width)}&blur=${blur}`;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
return ``;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
this.getRandomItem = async function () {
|
this.getRandomItem = async function () {
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in New Issue