Bug 424598 - Neither title nor image when using spotify
Summary: Neither title nor image when using spotify
Status: RESOLVED UPSTREAM
Alias: None
Product: plasmashell
Classification: Plasma
Component: Media Player widget (show other bugs)
Version: 5.19.3
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 1.0
Assignee: Kai Uwe Broulik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-24 08:07 UTC by Nils
Modified: 2020-07-24 13:47 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Neither title nor image (98.16 KB, image/png)
2020-07-24 08:07 UTC, Nils
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nils 2020-07-24 08:07:35 UTC
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
Comment 1 Nicolas Fella 2020-07-24 09:23:31 UTC
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
Comment 2 Nicolas Fella 2020-07-24 09:27:37 UTC
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
Comment 3 Nicolas Fella 2020-07-24 09:27:59 UTC
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.
Comment 4 Nils 2020-07-24 09:44:45 UTC
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
Comment 5 Nicolas Fella 2020-07-24 09:49:27 UTC
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
Comment 6 Nils 2020-07-24 13:35:05 UTC
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!
Comment 7 Nicolas Fella 2020-07-24 13:47:48 UTC
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)