Help Wizard

Step 1

NEXT STEP

Send Playlist using DBUS

Send Playlist using DBUS

Is there anyway to start playing from a playlist the same way you would play from an album using DBUS? I can't find anything using the documentation on the DBUS. I'm using Kubuntu and KDE.

Reply
3 Replies

Hey @NotAGoat,


Welcome to Spotify Community!

Can you please clarify what do you mean by "the same way you would play from an album using DBUS"?

Do you mean the autoplay feature?

 

Looking forward hearing from you  : - ) 

I can use a command like this in terminal to send thte song URI to spotify:

dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.OpenUri  spotify:track:2BBb3UMJBNlofpC25pbSp4

 

But if I use a playlist URI such as:

string: spotify:user:1131087073:playlist:4LoNjaNhFUTHefKUi1UEpn

 

It doesn't parse it through.

 

 

dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.OpenUri string:spotify:track:2BBb3UMJBNlofpC25pbSp4

 

and

 

dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.OpenUri string:spotify:user:1131087073:playlist:4LoNjaNhFUTHefKUi1UEpn

 

both changes the view in the client to the uri you specify.

 

I noticed a new regression in the client though. If playback in the client is stopped, opening a track uri starts playback. Since 1.0.29, it only changes the view without starting playback. Opening a playlist/artist/album uri has never started playback in the 1.0.x clients, but it did in 0.9 so it is already an old unfixed regression.

 

This has been discussed here:

 

https://community.spotify.com/t5/Help-Desktop-Linux-Windows-Web/DBus-OpenUri-not-playing/m-p/1233569

https://community.spotify.com/t5/Help-Desktop-Linux-Windows-Web/SOLVED-Linux-Spotify-DBus-MPRIS2-sup...

https://community.spotify.com/t5/Help-Desktop-Linux-Windows-Web/Linux-Spotify-client-1-x-now-in-stab...

 

Suggested posts