ncspot icon indicating copy to clipboard operation
ncspot copied to clipboard

Start playing a specific playlist / album / track

Open RealOrangeOne opened this issue 2 years ago • 1 comments

Is your feature request related to a problem? Please describe.

Currently, it's not possible to immediately start playing a given playlist, through the API

Describe the solution you'd like

:play spotify:playlist:<playlist_id>

Clear the current queue, and replace it with the provided playlist (perhaps as separate commands to allow appending to queue rather than just clearing it?).

Describe alternatives you've considered

I've had a look through the API docs and source, and can't see a reliably way of making this happen, without trying to interact with the UI.

Additional context

Currently, one of the key selling points of the socket API is "etting up routines, i.e. to play specific songs/playlists", which appears to not be possible.

RealOrangeOne avatar Apr 29 '23 18:04 RealOrangeOne

Hello, ncspot supports MPRIS, so you could use something like playerctl to start playing a song/album/playlist/podcast, for example: playerctl -p ncspot open "https://open.spotify.com/track/3i3n5eY1c43CbFZuYTsEON" or if you prefer to use the Spotify URI format: playerctl -p ncspot open "spotify:track:3i3n5eY1c43CbFZuYTsEON"

Bettehem avatar Jun 11 '23 12:06 Bettehem