2011/6/21 Mix Dance <[email protected]>:
> Example: source=playlist("/folder")

At this point there is no filename corresponding to a podcast. You
want to rewrite metadata of individual tracks, using a number
extracted from the filename of the track. The operator to use for that
is map_metadata() (your situation is too complex for the high-level
version rewrite_metadata()). You will have to write a function that
takes metadata (a list of pairs (key,value)) and returns the new
metadata. If the metadata argument is m, then m['filename'] will be
the filename which you should use with string.extract().

Somebody might spend some time to write the concrete code that you
need, if you at least specify what you need: what do you want to do
with the extracted number? store it in a new field? use it to modify
an existing field?

Cheers,

David

------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today.
http://p.sf.net/sfu/quest-sfdev2dev
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to