jishi / node-sonos-discovery

Simplified framework for Sonos built on node.js
MIT License
146 stars 75 forks source link

Added functionality to enable playlists in presets #59

Closed mattnewham closed 8 years ago

mattnewham commented 8 years ago

I have modified the below by duplicating the functions required to use a favourite in a preset, and enabled the same for playlists instead.

This now allows me to set a "playlist" field in the presets.json and have it correctly loaded to the Sonos system.

Note, the functionality of the playlist feature is exactly the same as favourite, in that it will replace the current queue and begin playing based on the options specified in the presets.json

I needed this as I wanted to play dynamic playlists from within a preset as part of a home kit integration using home bridge.

Should be a simple merge. Tested and working in my environment

jishi commented 8 years ago

Will try to add this to the beta instead