play list format

Discuss client development (or even MPD development if you feel so inclined), ask questions about the client libs, MPD feature requests from client developers, etc...
Post Reply
etx
Posts: 3
Joined: February 14th, 2013, 12:41 pm

play list format

Post by etx » February 14th, 2013, 12:44 pm

Hi there,

Does anyone have a document describing the file format of the play lists?

Qball
Forum team
Posts: 54
Joined: January 15th, 2013, 4:03 pm

Re: play list format

Post by Qball » February 14th, 2013, 1:02 pm

The once mpd can read. Or the one produces?

etx
Posts: 3
Joined: February 14th, 2013, 12:41 pm

Re: play list format

Post by etx » February 14th, 2013, 1:29 pm

Well, maybe it's a bit more than just that; it appears to have different transmission formats, for example when you ask for the playlist (playlistinfo) it comes across with certain formating (unsure what all the other commands give).

This format is not mentioned in the command reference / protocol document (http://www.musicpd.org/doc/protocol/) , would there be another document anywhere which describes these things?

Qball
Forum team
Posts: 54
Joined: January 15th, 2013, 4:03 pm

Re: play list format

Post by Qball » February 15th, 2013, 12:44 pm

Aaah, you want information about the protocol. This was not what you asked in the first post. (you asked about file format).

The return is in the format of:

key: value


Each song starts with the "file: <file path>" so each time you hit file: you see a new song. It ends with OK.


so:

file: path/to/song1
Artist: me
file: path/to/song2
Artist: you
Album: and
Title: me
OK

songs in the playqueue also have an Id and Pos.

etx
Posts: 3
Joined: February 14th, 2013, 12:41 pm

Re: play list format

Post by etx » February 15th, 2013, 8:35 pm

Yes, my terminology was probably a bit missleading.

Thanks for the outline of message format, that really helps.

Post Reply