fix for badges preventing mediaitem from rendering

This commit is contained in:
booploops 2022-01-04 00:10:34 -08:00
parent f16183781b
commit 3d1156ade1
4 changed files with 18 additions and 15 deletions

View file

@ -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")) {