Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: Re: Playlist creation

Re: Playlist creation

From: Christian Marg <christian.marg_at_tu-clausthal.de>
Date: 2004-12-30

Mark Bright wrote:
> Doh!

Whatever... I don't understand your new posting any better. [1]
But I'll try a shot anyway:

> I do have a command line random playlist generation routine, I just need to
> work out how to recurse it thro the menu structure.

Ok, I don't know your rpg-routine (*gg*) but if it needs full path names
to mp3s, you can use my playlist generation thingie:

dir /s /b H:\diverse\*.mp3 | sed -e s/H:\\//g

dir:
  /s - recurse into subdirectories
  /b - output simple format
       (like: <Driveletter>:\[[<path>\]...]<filename> )

  H:\diverse\*.mp3 - search Drive H:, Folder diverse, for *.mp3

sed:
 s/H:\\//g - replace any occurence of "H:\" by "" (eg. nothing).

The output of this command pipe are filenames with path but without
Driveletter. It can directly be written to playlist files using ">
filename.m3u". If you have a tool to shuffle lines that takes input from
stdin and gives the shuffled input to stdout, you can simply append it
to the pipe...

HTH.

bye
Christian

PS: [1] I didn't want to be rude, maybe it's just me being too tired by
now... - thats my excuse, hehe ;)

_______________________________________________
http://cool.haxx.se/mailman/listinfo/rockbox
Received on Thu Dec 30 00:32:03 2004


Page was last modified "Jan 10 2012" The Rockbox Crew
aaa