2007-01-21: EV dixit:
> As a first step towards implementing a directory-structure
> presentation of playlists in lkarmafs, I've been playing with
> riocp and added some playlist-based print and download support
> which I think can be useful. I've just sent the patch to Franky
> (changeset 134), [...]

I've just sent another patch (changeset 135) which improves the
riocp playlist functionality.  Now the new -L option no longer
uses a playListName argument to specify which playlist contents
you want to print or download.  Instead, the playlist name(s) are
specified through the existing -s or -S search options.  If -L is
set, those playlists which match the search criteria are expanded
and the corresponding tunes listed or downloaded. I've also added
a new name formatting tag (%l) (only valid for the -l option) to
allow using playlist names in the formating strings.  An example:

  ./riocp -L -s title=Playlist2,type=play+artist=Corea \
             -l playlists/%l/%a/%t.%c -u tunes/%g/%a/%t.%c 
  [...]
  Searching FIDs with "title=Greece                ":  5 selected
     ANDing FIDs with "type=playlist               ":  1 selected
      ORing FIDs with "artist=Corea                ":  6 selected
  #---- Contents of playlist "Greece" (fid=1568, 10 entries)
   1952 playlists/Greece/George Dalaras/Aspro peristeri.mp3
   1968 playlists/Greece/George Dalaras/Na me thimase.mp3
   1984 playlists/Greece/George Dalaras/O ouranos fevgi varis.mp3
   2000 playlists/Greece/George Dalaras/Theos an ine.mp3
   2016 playlists/Greece/George Dalaras/San ton metanasti (like an emi.mp3
   2032 playlists/Greece/George Dalaras/Stin Arapia.mp3
   2048 playlists/Greece/George Dalaras/Ta prota logia.mp3
   2064 playlists/Greece/George Dalaras/Libertadores - America insurre.mp3
   2080 playlists/Greece/George Dalaras/Avre tu puerta cerrada.mp3
   2096 playlists/Greece/George Dalaras/Noches noches.mp3
  #---- -------------------------------------
   7456 tunes/Jazz/Corea, Gillespie, etc./Lover Come Back To Me.mp3
   7472 tunes/Jazz/Corea, Gillespie, etc./Blues For Max.mp3
   7488 tunes/Jazz/Corea, Gillespie, etc./Tour de Force.mp3
   7504 tunes/Jazz/Corea, Gillespie, etc./Birks' Works.mp3
   7520 tunes/Jazz/Corea, Gillespie, etc./Lullaby Of The Leaves.mp3
  #---- -------------------------------------
  [...]

And, of course, if you add -d to the command, you get the files
downloaded to the "playlists/Greece/George Dalaras/" and
"tunes/Jazz/Corea, Gillespie, etc./" directories.

Now it should be nice to have a kind of symetric upload
functionality for playlists...  But I'd rather leave this for
somebody else, as I am now figuring out how to add playlyst
expansion to lkarmafs.

Best,
EV.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
linux-karma-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-karma-devel

Reply via email to