Commit 63d84595 authored by Adam Byrtek's avatar Adam Byrtek
Browse files
parent 93425714
......@@ -65,7 +65,14 @@ Item {
return xesamArtist.join(", ")
}
}
property string albumArt: currentMetadata ? currentMetadata["mpris:artUrl"] || "" : ""
property string albumArt: {
var artUrl = (currentMetadata && currentMetadata["mpris:artUrl"]) ? currentMetadata["mpris:artUrl"].toString() : "";
// HACK to fix incorrect art URL sent by Spotify
if (artUrl.startsWith("https://open.spotify.com/image/")) {
return artUrl.replace(/^https:\/\/open.spotify.com\/image\//, "https://i.scdn.co/image/");
}
return artUrl;
}
readonly property string identity: !root.noPlayer ? mpris2Source.currentData.Identity || mpris2Source.current : ""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment