diff --git a/src/renderer/main/vueapp.js b/src/renderer/main/vueapp.js index e3dadcb9..e3449711 100644 --- a/src/renderer/main/vueapp.js +++ b/src/renderer/main/vueapp.js @@ -3290,6 +3290,10 @@ const app = new Vue({ if (typeof url == "undefined" || url == "") { return "https://beta.music.apple.com/assets/product/MissingArtworkMusic.svg" } + height = parseInt(height * window.devicePixelRatio) + if(width) { + width = parseInt(width * window.devicePixelRatio) + } let newurl = `${url.replace('{w}', width ?? height).replace('{h}', height).replace('{f}', "webp").replace('{c}', ((width === 900) ? "sr" : "cc"))}`; if (newurl.includes("900x516")) { diff --git a/src/web-remote/views/components/mediaitem-artwork.ejs b/src/web-remote/views/components/mediaitem-artwork.ejs index 55617ebb..faf19dd4 100644 --- a/src/web-remote/views/components/mediaitem-artwork.ejs +++ b/src/web-remote/views/components/mediaitem-artwork.ejs @@ -89,6 +89,10 @@ if (typeof url == "undefined" || url == "") { return "https://beta.music.apple.com/assets/product/MissingArtworkMusic.svg" } + height = parseInt(height * window.devicePixelRatio) + if(width) { + width = parseInt(width * window.devicePixelRatio) + } let newurl = `${url.replace('{w}', width ?? height).replace('{h}', height).replace('{f}', "webp").replace('{c}', ((width === 900) ? "sr" : "cc"))}`; if (newurl.includes("900x516")) {