Commit 3c955639 authored by Sören Tempel's avatar Sören Tempel

doc: Document required order of currentsong response

The parser implemented in libmpdclient requires the first key-value pair of the server response to be the file pair. This is due to the fact that libmpdclient scan pairs sequentially and first attempts to extract the file pair before parsing the currentsong response further. See: https://github.com/MusicPlayerDaemon/libmpdclient/blob/5c751a761ec9f71a43ee0e41cfff3208f31a58b8/src/song.c#L559-L563 Meta data encoded as pairs in the currentsong response will be ignored if they are placed before the file pair in the response.
parent bca96786
......@@ -389,7 +389,9 @@ Querying :program:`MPD`'s status
:command:`currentsong`
Displays the song info of the current song (same song that
is identified in status).
is identified in status). Information about the current song
is represented by key-value pairs, one on each line. The first
pair must be the `file` key-value pair.
.. _command_idle:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment