2006-08-15: EV dixit:
> While working in the upcoming release of lkarmafs, there are a 
> couple of issues which require some discussion and consensus: 
> 1. tune write/delete permission management 
> 2. options for naming the path-name formation props when
>    uploading
> I'll discuss 2 in another message. [...]

O.K.  I assume write permission for files under mnt/tune/ is 
somehow granted.  Remember that (so far) the dir structure under 
tune/ is fixed: either genre/artist/source/title or 
artist/source/title.  

Now we want to upload some file such as ~/music/A/B/C/blaBla.ogg.  
Using the current -T option you can do, for instance:

  cp ~/music/A/B/C/blaBla.ogg mnt/tune/X/Y/Z/
or 
  cat ~/music/A/B/C/blaBla.ogg > mnt/tune/X/Y/Z/blaBla.ogg

This way you get mnt/tune/X/Y/Z/blaBla.ogg with the metadata 
genre="X", artist="Y", source="Z", title="blaBla", codec="mp3".
These will be the labels shown by the RK when playing this tune.

Of course, blaBla.ogg may have its own tags which may or may not
be the same as X,Y,Z,blaBla,ogg.  In fact when you upload tunes
via riocp (or rmml, or the lkarmafs upload scripts), the metadata
is obtained from the file tags.  In the upcomming lkarmafs
release, we will be able to get the metadata from the file tags
too.  But, when you want to get the metadata this way, you can't
at the same time want to name the tune/... path componnets
yourself.  In this case, I think the copy-to command should have
to be something like:

  cp ~/music/A/B/C/blaBla.ogg mnt/

or, may be at most:

  cp ~/music/A/B/C/blaBla.ogg mnt/tune/

In this upload or copy-to approach, you should get an error if 
trying to cp to some existing path (ideally, you'd get error 
if some named path componnent doesn't match the tag metadata; but 
I fear this would not be possible whith the way we are extracting 
the tags).  If the blaBla.ogg tags are Rock, Clapton, Unplugged, 
Signe and ogg, you will get the lkarmafs file:

  mnt/tune/Rock/Clapton/Unplugged/Signe.ogg

and these will be the labels wou'll get when playing in the RK.

I know this may be confusing, but other possibilities I can 
imagine are even more confusing.  May be another possibility is 
to create a (virtual) dir such as mnt/uploadSandBox/ where you 
have to copy every tune whose path-formation properties are to be 
extracted from tags.  It will be understood that, if everything 
goes well, mnt/uploadSandBox/ will be permanently empty and 
you'll get the uploaded files in their due paths under mnt/tune.

Comments?  other ideas?

Best,
EV.


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
linux-karma-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-karma-devel

Reply via email to