bencevans / node-sonos

🔈 Sonos Media Player Interface/Client
https://www.npmjs.com/package/sonos
MIT License
704 stars 147 forks source link

feat: add/delete playlist, add/remove songs to/from playlist #388

Closed phoenixrising87 closed 5 years ago

phoenixrising87 commented 5 years ago

Hi everyone,

I added some new functionality for creating playlists and also for deleting them. Please have a look over it :-)

svrooij commented 5 years ago

Do you also have a way of how to find out the playlist id to delete a playlist? How do you add stuff to the playlist? Or does it save the current queue as playlist?

phoenixrising87 commented 5 years ago

Do you also have a way of how to find out the playlist id to delete a playlist?

Yes, you can right get all the playlists with: https://github.com/bencevans/node-sonos/blob/master/examples/getsonosplaylists.js The uri looks for example like this file:///jffs/settings/savedqueues.rsq#9. The number at the end, is the id.

How do you add stuff to the playlist? Or does it save the current queue as playlist?

In here it is creating an empty list. I'm on it, to add also the functionality for adding songs to playlists.

phoenixrising87 commented 5 years ago

I added the functionality for adding songs etc to the playlist. Removing songs is still on my plan.

phoenixrising87 commented 5 years ago

Also removing songs is now possible

phoenixrising87 commented 5 years ago

I would appreciate some reviews for using this integration in my application :)

bencevans commented 5 years ago

:tada: This PR is included in version 1.9.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: