YAPL - a new playlist creator for the FUZE

No problem -

you should use .pla format. .m3u cannot contain files from both internal and uSD slot within the same playlist. When the Fuze is connected in MTP mode, the .pla format is the type used by the Fuze itself.

There are two files needed for the .pla format. First, is <filename>.pla which is an empty zero byte file. In the same directory, you should add a <filename>.pla.refs file, which contains the songs. One per line, with unix path formats. The internal drive is designated /mmc:0:/ and the uSD slot is /mmc:1:/. the filenames in unix format follow those headers.

for example, here’s my war-of-the-worlds playlist:

/mmc:1:/music/jeff wayne/war of the worlds/jeff wayne - war of the worlds - 01 - the eve of the war.mp3

/mmc:1:/music/jeff wayne/war of the worlds/jeff wayne - war of the worlds - 02 - horsell common and the heat ray.mp3

/mmc:1:/music/jeff wayne/war of the worlds/jeff wayne - war of the worlds - 03 - the artilleryman and the fighting machine.mp3

/mmc:1:/music/jeff wayne/war of the worlds/jeff wayne - war of the worlds - 04 - forever autumn.mp3

/mmc:1:/music/jeff wayne/war of the worlds/jeff wayne - war of the worlds - 05 - thunder child.mp3

/mmc:1:/music/jeff wayne/war of the worlds/jeff wayne - war of the worlds - 06 - the red weed (part 1).mp3

/mmc:1:/music/jeff wayne/war of the worlds/jeff wayne - war of the worlds - 07 - the spirit of man.mp3

/mmc:1:/music/jeff wayne/war of the worlds/jeff wayne - war of the worlds - 08 - the red weed (part 2).mp3

/mmc:1:/music/jeff wayne/war of the worlds/jeff wayne - war of the worlds - 09 - brave new world.mp3

/mmc:1:/music/jeff wayne/war of the worlds/jeff wayne - war of the worlds - 10 - dead london.mp3

/mmc:1:/music/jeff wayne/war of the worlds/jeff wayne - war of the worlds - 11 - epilogue (part 1).mp3

/mmc:1:/music/jeff wayne/war of the worlds/jeff wayne - war of the worlds - 12 - epilogue (part 2).mp3

As you can see, it’s all stored on the uSD slot.

As you asked, here’s my playlist creation code in Borland Delphi 5:

DriveLetter := FuzeStatus.Internal.DriveLetter;



SlotLetter := FuzeStatus.Slot.DriveLetter;



SaveList := TStringlist.Create;



For Idx := 0 To PlayList.Count -1 Do Begin



Str := PlayList[Idx];



Idx2 := 1;



While Idx2 \< Length(Str) Do Begin



If Str[Idx2] = '\' Then



Str[Idx2] := '/';



Inc(Idx2);



End;



If Str[1] = DriveLetter Then



Str := '/mmc:0' + Copy(Str, 2, Length(Str))



Else



Str := '/mmc:1' + Copy(Str, 2, Length(Str));



SaveList.Add(Str);



End;

 For each playlist item, get the filename. Then convert to unix format paths. Then replace drive letters with the proper assignments. At the end, you have a playlist in the SaveList stringlist. You may or may not find that useful!

Any more questions, just ask - but there should be everything you need up there.

D. 

Message Edited by Dunny on 09-06-2009 12:14 AM