Madh93 / conky-spotify

:musical_note: Show current Spotify track in Conky (Cover, title...)
GNU General Public License v3.0
65 stars 20 forks source link

Cover does not - show URL is wrong #7

Open dennistdk opened 4 years ago

dennistdk commented 4 years ago

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 commented 4 years ago

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

Madh93 commented 4 years ago

Hi,

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

betojsp commented 4 years ago

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

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

Madh93 commented 4 years ago

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

highonskooma commented 4 years ago

(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 commented 4 years ago

(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

tavogorriak commented 1 year ago

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