node-sonos-http-api icon indicating copy to clipboard operation
node-sonos-http-api copied to clipboard

Support adding multiple tracks in one request with music services

Open kswilster opened this issue 9 years ago • 5 comments
trafficstars

It would be nice if an endpoint was exposed to interact with SonosDiscovery.Player#addMultipleURIsToQueue. I imagine this would be a POST with a list of spotify/apple music track IDs.

kswilster avatar Nov 15 '16 21:11 kswilster

could you please describe your use case to get a better understanding of what you want to achieve? addToQueue etc I have considered to be low-level calls because they depend on actually valid metadata in addition to the tracks, which is handled transparently by the various music service routes today.

They are not easy to use directly unfortunately.

jishi avatar Nov 16 '16 08:11 jishi

my use case is queueing up several songs at once. At the moment I hit the /RoomName/spotify/queue/spotify:track:4LI1ykYGFCcXPWkrpcU7hn endpoint repeatedly and it seems like it's possible to improve on that

kswilster avatar Nov 16 '16 16:11 kswilster

So basically you just want to add multiple URIs for a single music service? Not multiple services?

jishi avatar Nov 17 '16 09:11 jishi

Correct

kswilster avatar Nov 17 '16 15:11 kswilster

This might help: http://docs.python-soco.com/en/v0.28.1/_modules/soco/core.html#SoCo.add_multiple_to_queue

jokull avatar Nov 18 '22 13:11 jokull