89 I looked at how mpd stores its playlists. Seems to be easy enough to make by myself.
Its stored as a .m3u file, which by itself is easy. Each file just needs to start with the correct header
and each line is written as
Code:
#EXTINF:191,Artist Name - Track Title
However, a quick look at a playlist file created by mpd shows that it is actually using (what I believe are) malformed m3u files, which for ones may make my life a lit easier.
First off, the header is missing. Although writing it was easy enough, I'm not complaining. Second of all, this is how they are stored
Code:
drian von ziegler/Celtic Music - Ancient Storm.mp3
adrian von ziegler/Celtic Music - Breath of the Forest.mp3
adrian von ziegler/Celtic Music - Prophecy.mp3
adrian von ziegler/Celtic Music - Wolf Blood.mp3
adrian von ziegler/Dark Music - Blood Night.mp3
adrian von ziegler/Electronic Music - New Horizons.mp3
adrian von ziegler/Emotional Music - Fare Thee Well.mp3
adrian von ziegler/Viking Music - Einherjer.mp3
adrian von ziegler/World Music - Aki (秋).mp3
adrian von ziegler/World Music - Bone Temple.mp3
adrian von ziegler/World Music - Hual Hadi.mp3
So... I don't even have to do trickery to get the length of the files by the looks of it
I think this is the first time a program not following the standards may make my life easier. But.... before I start programming anything its first time to make sure I can make these file by hand.
edit: and... it can even deal with full paths instead of relative ones like it itself writes. So... I guess it now totally works...