node-sonos-http-api
node-sonos-http-api copied to clipboard
Support adding multiple tracks in one request with music services
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.
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.
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
So basically you just want to add multiple URIs for a single music service? Not multiple services?
Correct
This might help: http://docs.python-soco.com/en/v0.28.1/_modules/soco/core.html#SoCo.add_multiple_to_queue