This is an updated version of qball's patch to extend the clear and add
commands to take an optional argument specifying the playlist to
clear/add to. The syntax is:
add [<playlist>] <url>
Before committing this I think there a few things that need to be
* Should clear/add be extended, as it is now, or should new commands be
added for editing stored playlists?
* Should the playlist come first or second? IMO, add <playlist> <url>
makes more sense, but is kind of awkward if the first argument is
* Currently add requires add permision, whereas save requires control
permission. So what permissions should add have if it can effectively
be used as an alternative to save? This isn't a worry for clear,
which already requires the same permissions as rm.
A copy of the patch can also be found at