[LAU] command line playlist (m3u) creator anyone?

carmen _ at whats-your.name
Thu Jan 1 05:40:47 EST 2009


On Thu Jan 01, 2009 at 02:17:57AM -0800, Erik Steffl wrote:
> Kevin Cosgrove wrote:
> > Anyone know of a nice command-line playlist creator?  I'm thinking of 
> > something like:
> > 
> >    playlist-creator directory -o directory.m3u
> 
>    m3u is just a list of files so ls or find should work, e.g.:
> 
> find directory -name '*.mp3' > directory.m3u

in ~/.bashrc

alias pl='find -L "`pwd`" -iregex ".*.flac" -o -iregex ".*.mp3" -o -iregex ".*.m4a"|sort> .pls'

then for genres:

alias dub='cd && ma "\(tubby\|scientist\|rac/\|rks/\|jah/\|dub\)"'
alias 313='cd && ma "\(dan.*\(curtin\|bell\)\|chicago\|r_and_s\|metroplex\|kms\|peacefrog\|modell\|deepchord\|acid\|titonton\|tejada\|morgan\|dbx\|moody\|parrish\|ranelin\|red.planet\|martian\|dj.\(assault\|godfather\|bone\)\|terrence\|mark.williams\|suburban\|detroit\|313\)"'

mpl() { m -loop 0 -shuffle -playlist $*;}
ma() { grep -i "$*" .pls > .f && mpl .f;}

alias m=mplayer


etc

> 
> 	erik
> 
> _______________________________________________
> Linux-audio-user mailing list
> Linux-audio-user at lists.linuxaudio.org
> http://lists.linuxaudio.org/mailman/listinfo/linux-audio-user



More information about the Linux-audio-user mailing list