conky-spotify
conky-spotify copied to clipboard
Cover does not - show URL is wrong
Seems Spotify moved the URL where the covers are being fetched from. The meta data shows it as open.spotify.com/image, but it returns an 404 causing the covers not to show. A temp. fix could be changing scripts/imgurl.sh to:
#!/bin/bash
baseurl="https://i.scdn.co/image/"
imgurl=`dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get string:'org.mpris.MediaPlayer2.Player' string:'Metadata' | egrep -A 1 "artUrl" | egrep -v "artUrl"| cut -b 75- | cut -d '"' -f 1`
echo $baseurl$imgurl
thank you,was really searching for this.hope the dev applies that :)
Hi,
Contributions are always welcome. Feel free to open a pull request with this change @dennistdk :+1:
Hi, I solved the problem replace open.spotify.com - i.scdn.co
sed "s/open.spotify.com/i.scdn.co/"
Hey @betojsp, feel free to open a pull request with your change :clap:
(linux newbie here) the covers are loading correctly into /conky-spotify/covers and /conky-spotify/current. but the widget is missing the album image. This message appears after running conky -c conky-spotify-small: rm: cannot remove 'wget-log': No such file or directory any help? the rest seems to be working fine.
(linux newbie here) the covers are loading correctly into /conky-spotify/covers and /conky-spotify/current. but the widget is missing the album image. This message appears after running conky -c conky-spotify-small: rm: cannot remove 'wget-log': No such file or directory any help? the rest seems to be working fine.
fixed in #14
Hi folks! Spotify changes some url, with this changes you can see the covers again:
id.sh #!/bin/bash id=dbus-send --print-reply --session --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get string:'org.mpris.MediaPlayer2.Player' string:'Metadata' | grep spotify/track/ | cut -d "/" -f5 | cut -d '"' -f1 | sed -n '1p' echo $id
imgurl.sh #!/bin/bash imgurl=dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get string:'org.mpris.MediaPlayer2.Player' string:'Metadata' | egrep -A 1 "artUrl" | egrep -v "trackid"| cut -b 44- | cut -d '"' -f 1 echo $imgurl