Created attachment 130359 [details] Neither title nor image SUMMARY When using Spotify, I have no image nor title song. Just a base64 string and the default icon. The subtitle is displayed correctly STEPS TO REPRODUCE 1. Lauching Spotify 2. Clicking on media player OBSERVED RESULT See attached file. EXPECTED RESULT SOFTWARE/OS VERSIONS Windows: macOS: Linux/KDE Plasma: (available in About System) KDE Plasma Version: KDE Frameworks Version: Qt Version: ADDITIONAL INFORMATION
The missing album art is Spotify's problem. It reports a URL for the album art, but that just points to nothing. Nothing we can do about that. https://community.spotify.com/t5/Desktop-Linux/MPRIS-cover-art-url-file-not-found/m-p/4920104
As for the title, it works fine for me, but if Spotify delivered garbage to use here it would show up in the UI. Can you run "qdbus org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Metadata" and paste the output here? That's the data Spotify reports to Plasma.
Here it is: ❯ qdbus org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Metadata mpris:artUrl: https://open.spotify.com/image/ab67616d00001e02db65cfec2e8e37303140c881 mpris:length: 185234000 mpris:trackid: spotify:track:1bXoENBZuBkZniaPhRVgNp xesam:album: The Elder Scrolls IV: Oblivion: Original Game Soundtrack xesam:albumArtist: xesam:artist: xesam:autoRating: 0 xesam:discNumber: 0 xesam:title: xesam:trackNumber: 0 xesam:url: https://open.spotify.com/track/1bXoENBZuBkZniaPhRVgNp
When you click on the artUrl you'll find an error page. That's why the album art doesn't work. xesam:title is empty, which is why you don't see a proper title. It looks like the applet is falling back to the track id in that case. There's not much we can do about that I'm afraid. Usually I'd advice to report this to Spotify where this should be fixed, but judging by the number of reports in https://community.spotify.com/t5/forums/searchpage/tab/message?advanced=false&allow_punctuation=false&q=mpris I don't have high hopes for a fix
Thanks. I suppose we could not use the solution provided in the referenced issue, I quote: A quick check on the WebApp showed that using the ID from that url and the prefix "https://i.scdn.co/image/" makes it work again. Though the client is more throughly checked." Anyway, I ended up installing this https://github.com/freundTech/SpotPRIS2 and now it works as long as I don't try to use spotify connect. Thanks for the quick feedback nevertheless! KDE is a top notch desktop environment!
I'm usually cautious about adding such workarounds since they may lead to unpredictable behaviour and mask the original issue, which makes it less likely that it will be addressed properly (although arguably it is already unlikely in this case)