add dlna and ui fixes

This commit is contained in:
vapormusic 2022-08-31 17:43:57 +07:00
parent d5ade09aa7
commit a023bd619c
10 changed files with 64 additions and 46 deletions

View file

@ -86,6 +86,7 @@
this.isVisible = isVisible
},
getMediaItemArtwork(url, height = 64, width) {
try{
if (typeof url == "undefined" || url == "") {
return "./assets/MissingArtwork.svg"
}
@ -98,7 +99,9 @@
if (newurl.includes("900x516")) {
newurl = newurl.replace("900x516cc", "900x516sr").replace("900x516bb", "900x516sr");
}
return newurl
return newurl} catch (e){
return "./assets/MissingArtwork.svg"
}
},
}
});

View file

@ -213,7 +213,7 @@
}
switch (this.kind) {
case "385":
artwork = this.item.attributes.editorialArtwork.subscriptionHero.url
artwork = this.item.attributes?.editorialArtwork?.subscriptionHero?.url
break;
}
if (!includeUrl) {