fix for badges preventing mediaitem from rendering
This commit is contained in:
parent
f16183781b
commit
3d1156ade1
4 changed files with 18 additions and 15 deletions
|
@ -2408,6 +2408,9 @@ const app = new Vue({
|
|||
}
|
||||
},
|
||||
getMediaItemArtwork(url, height = 64, width) {
|
||||
if(typeof url == "undefined" || url == "") {
|
||||
return "https://beta.music.apple.com/assets/product/MissingArtworkMusic.svg"
|
||||
}
|
||||
let newurl = `${url.replace('{w}', width ?? height).replace('{h}', height).replace('{f}', "webp").replace('{c}', ((width === 900) ? "sr" : "cc"))}`;
|
||||
|
||||
if (newurl.includes("900x516")) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue