(O)enone wrote:
I don't know about PLS files
[...]
OK, I do now, Wikipedia has some information on the content of these files.
They're also just text files so you should be able to easily read and write
these too.
http://en.wikipedia.org/wiki/PLS_(file_format)
Yes, they are straight text-based formats, but they have some
exclusive specifiers such as #EXTM3U, #EXTINF and more. I have to
ignore or translate these specifiers during loading files' path's into
listbox, that makes project harder than you guess. If it's easy to
import an M3U items' path's into a listbox with knowing all M3U
specifiers, it would be so good to see here a code sample.
I'm not exactly sure what your asking? What exactly are you after
from the file. The file format is very, very simple - here is the
sample from the format documentation:
#EXTM3U
#EXTINF:111,3rd Bass - Al z A-B-Cee z
mp3/3rd Bass/3rd bass - Al z A-B-Cee z.mp3
#EXTINF:462,Apoptygma Berzerk - Kathy�s song (VNV Nation rmx)
mp3/Apoptygma Berzerk/Apoptygma Berzerk - Kathy's Song (Victoria Mix
by VNV Nation).mp3
#EXTINF:394,Apoptygma Berzerk - Kathy's Song
mp3/Apoptygma Berzerk/Apoptygma Berzerk - Kathy's Song.mp3
#EXTINF:307,Apoptygma Bezerk - Starsign
mp3/Apoptygma Berzerk/Apoptygma Berzerk - Starsign.mp3
#EXTINF:282,Various_Artists - Butthole Surfers: They Came In
mp3/Butthole_Surfers-They_Came_In.mp3
The #EXTM3U is always the first line of the file. So, you can just
ignore that first line when reading it in. Then, each pair of lines
after that makes up the information about a particular track. The
#EXTINF line is metadata... In the fomrat of:
#EXTINF:track length in whole seconds,name of track
The name is not the filename, but the actual song title - according
the spec, a generator should take that from the file metadata (the ID3
tag for an mp3). If it doesn't exist, it is the filename - extension.
And the next line is the actual path/filename.
So, what part is giving you trouble?