Commit abb57e47 authored by Adam Byrtek's avatar Adam Byrtek
Browse files
parent 6fd64d18
......@@ -69,7 +69,14 @@ ColumnLayout {
return decodeURIComponent(lastUrlPart);
}
readonly property string artist: currentMetadata["xesam:artist"] || ""
readonly property string albumArt: currentMetadata["mpris:artUrl"] || ""
readonly property string albumArt: {
var artUrl = 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;
}
spacing: units.smallSpacing
......
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