conky-spotify icon indicating copy to clipboard operation
conky-spotify copied to clipboard

Cover does not - show URL is wrong

Open dennistdk opened this issue 4 years ago • 7 comments

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

dennistdk avatar May 21 '20 19:05 dennistdk

thank you,was really searching for this.hope the dev applies that :)

napca avatar Jun 07 '20 08:06 napca

Hi,

Contributions are always welcome. Feel free to open a pull request with this change @dennistdk :+1:

Madh93 avatar Jun 07 '20 11:06 Madh93

Hi, I solved the problem replace open.spotify.com - i.scdn.co

sed "s/open.spotify.com/i.scdn.co/"

betojsp avatar Jun 19 '20 19:06 betojsp

Hey @betojsp, feel free to open a pull request with your change :clap:

Madh93 avatar Jun 20 '20 14:06 Madh93

(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.

highonskooma avatar Jul 19 '20 15:07 highonskooma

(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

BarkleyIII avatar Jul 19 '20 20:07 BarkleyIII

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

screenshot

tavogorriak avatar Jan 11 '23 01:01 tavogorriak