Rasmus Lövegren
Rasmus Lövegren
This would be useful for allowing empty variables to be modified by the expression.
Here's one way to accomplish this. https://github.com/ISibboI/evalexpr/pull/165
Needed so that e.g. calling "skip to song at pos 5" twice (in case of network lag) doesn't skip 10 songs
REST/socketio plugins as well as clients still need to implement & make use of this, then it can be marked as done.
On a second thought we should probably allow both ways of addressing positions, for very simple clients such as the terminal client.
Also make sure adding a song while paused doesn't resume playback...
Pay attention also to function return values. Currently somewhat inconsistent, some return true/false while others return eg. songlist/undefined.
Should onQueueModify() take as parameter what was modified?
Ideas: https://www.npmjs.com/package/socket-ntp