> >> And I have no idea how I easily create playlists.
> >> It's shell magic for mplayer, and GUIs using mplayer
> >> may also provide ways - as I read the manpages,
> >> I am supposed to write maps myself. :-(
> >
> > it is possible to generate (template) maps.
> > either when you get the music from cd (readcd does this)
> > or using the tags that are present in (e.g.) mp3 files.
>
> As I recall you need a map to actually start up playlistfs/juke*,
> so how does one start? Can you give an example? :)
I think you were the one who mentioned
> >> man 7 juke # juke(7)
it does contain an example. it can be even simpler,
something like below, where you just follow the
file system hierarchy.
the following assumes that the actual files are like
/some/path/mp3/groupdirname/albumdirname/01_some_name.ogg
etc. (I used anyrhines audio/ogg-vorbis stuff)
work {
some name
path {/some/path/mp3}
command {sort}
work {
group
path {groupdirname}
command {sort}
work {
album title
path {albumdirname}
command {sort}
track {
02 name of second track
file {02_second_track.ogg}
}
track {
01 name of first track
file {01_some_name.ogg}
}
...
}
}
}
if you put the tracks of the album in the right order
you can leave out the innermost 'command {sort}'.
however, the real power of the maps comes from being able to
use arbitrary attributes.
for example, i have run a script over my map that adds something
like the permuted index that we have for the manual pages,
by shifting names/titles around, such that you
track {
artist = Fay~Lovsky
artistpF = Fay~Lovsky
artistpL = Lovsky~~--~~Fay
title = Christmas~Was~A~Friend~Of~Mine
titlepC = Christmas~Was~A~Friend~Of~Mine
titlepW = Was~A~Friend~Of~Mine~~--~~Christmas
titlepF = Friend~Of~Mine~~--~~Christmas~Was~A
titlepO = Of~Mine~~--~~Christmas~Was~A~Friend
titlepM = Mine~~--~~Christmas~Was~A~Friend~Of
Fay·Lovsky·-·Christmas·Was·A·Friend·Of·Mine
file {Fay·Lovsky·-·Christmas·Was·A·Friend·Of·Mine.mp3}
}
(in the 'name=value' lines ~ denotes a space)
this allows you to 'sort' your data on any word from title or name.
I split the permuted title and artist indexs on first letter, because
they would be to big otherwise, hence the artistpF, artistpL etc.
of course, it should be possible to write something that,
to juke, offers the same interface as jukefs, but does not
read the maps but just takes the structure of the filesystem
instead.
Axel.