View Single Post
Old 09-02-2012, 04:08 AM   #4
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 11,741
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by slothful View Post
I'm not attached to writing it in python; isn't that the internal language for Calibre? But, let's say I go ahead and do so... can you tell me how I can actually access the stuff I asked about, in ANY mode?
Look at the metadata API documentation. It gives you the field names for all the calibre metadata objects. In GPM you can use the 'field' function to get any one of them. In python you would use something like mi.get('field name'). For example:
program: x=field('identifiers'); y=select(x, 'urn'); substr(y, 5, 0);
chaley is offline   Reply With Quote