Added new optional argument MODE to command 'save' to be able to append or replace an existing playlist

This commit is contained in:
gd
2022-10-02 11:19:26 +03:00
parent b0d6c0e7cb
commit cd093a6014
5 changed files with 53 additions and 15 deletions

View File

@@ -1008,10 +1008,21 @@ remote playlists (absolute URI with a supported scheme).
.. _command_save:
:command:`save {NAME}`
:command:`save {NAME} [MODE]`
Saves the queue to
`NAME.m3u` in the playlist directory.
``MODE`` [#since_0_24]_
Optional argument. One of `create`, `append`, or `replace`.
`create`
The default. Create a new playlist.
Fail if a playlist with name ``NAME`` already exists.
`append`, `replace`
Append or replace an existing playlist.
Fail if a playlist with name ``NAME`` doesn\'t already exist.
The music database
==================