dev builds
themes manual
device status forums
mailing lists
IRC bugs
dev guide

Rockbox mail archive

Subject: Re: Playlist creation

Re: Playlist creation

From: Christian Marg <>
Date: Thu, 30 Dec 2004 00:31:56 +0100

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

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

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

 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...



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

Received on 2004-12-30

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy