altdesktop / playerctl

🎧 mpris media player command-line controller for vlc, mpv, RhythmBox, web browsers, cmus, mpd, spotify and others.
GNU Lesser General Public License v3.0
2.42k stars 79 forks source link

Don't work with spotify #121

Closed hrqmonteiro closed 4 years ago

hrqmonteiro commented 5 years ago

Simply can't recognize spotify, no matter what i do it still goes:

[hrq@motherbase ~]$ playerctl -l [hrq@motherbase ~]$ No players were found

I even tried everything from other issues around here and another places

It works with every other single player but not with spotify

acrisci commented 5 years ago

Contact Spotify customer support.

hrqmonteiro commented 5 years ago

Well, alright, then..

philippeboyd commented 5 years ago

Works good with Spotify... or, rather, worked. Metadatas are now empty on all tracks (Artist, Album, Title, etc)

spotify mpris:trackid             spotify:track:78wMD0pLwum3Xmm76VMQel
spotify mpris:length              248176000
spotify mpris:artUrl              
spotify xesam:album               
spotify xesam:albumArtist         
spotify xesam:artist              
spotify xesam:autoRating          0.0
spotify xesam:discNumber          0
spotify xesam:title               
spotify xesam:trackNumber         0
spotify xesam:url                 https://open.spotify.com/track/78wMD0pLwum3Xmm76VMQel
ericonr commented 4 years ago

You can use something like spotifyd as the Spotify device. It reports all the information and can be controlled by playerctl commands.

acrisci commented 4 years ago

I'm serious about contacting Spotify support btw. I don't think people are doing it 🧐.

Also see the troubleshooting section. You need to have dbus variables such as DBUS_SESSION_BUS_ADDRESS set for it to work.

AdamSLevy commented 4 years ago

if you are launching spotify directly from the CLI and not using the desktop entry then you'll probably have issues.

Try launching spotify from the cli using dex /usr/share/applications/spotify.desktop

AnySomebody1 commented 4 years ago

I don't have any problems with Spotify at all, neither with the Desktop launcher nor with the bin itself.

acrisci commented 4 years ago

For an example letter to spotify customer support, see here.