command/database: add optional position parameter to "searchaddpl"

Closes https://github.com/MusicPlayerDaemon/MPD/issues/1328
This commit is contained in:
Max Kellermann
2021-11-09 21:17:50 +01:00
parent 651f57bced
commit 3464497880
6 changed files with 43 additions and 4 deletions

View File

@@ -1225,7 +1225,7 @@ The music database
.. _command_searchaddpl:
:command:`searchaddpl {NAME} {FILTER} [sort {TYPE}] [window {START:END}]`
:command:`searchaddpl {NAME} {FILTER} [sort {TYPE}] [window {START:END}] [position POS]`
Search the database for songs matching
``FILTER`` (see :ref:`Filters <filter_syntax>`) and add them to
the playlist named ``NAME``.
@@ -1234,6 +1234,9 @@ The music database
Parameters have the same meaning as for :ref:`search <command_search>`.
The ``position`` parameter specifies where the songs will be
inserted. [#since_0_23_4]_
.. _command_update:
:command:`update [URI]`
@@ -1655,3 +1658,4 @@ client-to-client messages are local to the current partition.
.. [#since_0_23] Since :program:`MPD` 0.23
.. [#since_0_23_1] Since :program:`MPD` 0.23.1
.. [#since_0_23_3] Since :program:`MPD` 0.23.3
.. [#since_0_23_4] Since :program:`MPD` 0.23.4