Store last loaded playlist

Stores the last loaded playlist uri in the queue struct.
Last loaded playlist is set on load command and cleared with the clear command.
The last loaded playlist is printed in the status command and saved / restored from the partition state file.

Resolves issue #938
This commit is contained in:
jcorporation
2024-08-18 22:55:57 +02:00
parent a3a07280e8
commit bfbff31860
7 changed files with 24 additions and 2 deletions

View File

@@ -544,6 +544,7 @@ Querying :program:`MPD`'s status
:ref:`audio_output_format` for a detailed explanation.
- ``updating_db``: ``job id``
- ``error``: if there is an error, returns message here
- ``lastloadedplaylist``: last loaded stored playlist [#since_0_24]_
:program:`MPD` may omit lines which have no (known) value. Older
:program:`MPD` versions used to have a "magic" value for