Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cover does not - show URL is wrong #7

Open
dennistdk opened this issue May 21, 2020 · 7 comments
Open

Cover does not - show URL is wrong #7

dennistdk opened this issue May 21, 2020 · 7 comments

Comments

@dennistdk
Copy link

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
@napca
Copy link

napca commented Jun 7, 2020

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

@Madh93
Copy link
Owner

Madh93 commented Jun 7, 2020

Hi,

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

@betojsp
Copy link

betojsp commented Jun 19, 2020

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

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

@Madh93
Copy link
Owner

Madh93 commented Jun 20, 2020

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

@highonskooma
Copy link
Contributor

highonskooma commented Jul 19, 2020

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

@BarkleyIII
Copy link
Contributor

(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

harsh2204 added a commit to harsh2204/conky-spotify that referenced this issue Sep 14, 2020
Switched img_url code to fetch thumbnail_url from their oEmbed API using the trackid field. This could very well just be fixed by changing the hostname for img_url to `https://i.scdn.co/image/` as mentioned in issue Madh93#7, but using the api ensure more safety in case spotify decides to host their files on a different hostname.
@tavogorriak
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants