Luckily i alone have found the solution, otherwise...
local dir = DirectoryListing(system_rom_path);
foreach(dir_name in dir.results)
{
if(dir_name.find(sel_game)!= null)
{
// strip m3u
local f = txt.loadFile(dir_name);
local aa = [];
local i = 1;
foreach(line in f.lines)
{
// track
local l = split(line, "\\"); // split path-file for "/"
local name = strip(l.pop().slice(0, -4)); // only filename, without ext
local folder = strip(l.pop()); // path folder
local f = split(folder, "-");
local n = split(name, "-");
local album = strip(f[1]);
local artist = strip(n[1]);
local title = strip(n[2]);
aa.push(
{
"filename" : line,
"folder" : folder,
"title" : title,
"album" : album,
"artist" : artist
});
i++;
}
music_db.push(aa);
}
}