View Single Post
Old 01-13-2012, 10:06 AM   #8
Demosthenex
Member
Demosthenex began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Dec 2011
Device: Pocketbook 702
That's a good idea, and it does hold true, I can query the highest index number easily from the command line.

Where I just fell flat is trying to add metadata. Set metadata requires an OPF formatted file, and replaces all metadata on the title in question. Looking at another book I added a source field to and grabbed the OPF, the syntax is huge for the custom field.

At this point to do this in a batch script I would have to query the OPF of the newest title, and then have a script edit this XML to add a giant source block and then recommit it.

Did I miss something where I can just set one field on a ebook from the command line (ie: "calibredb book# set_field source 'http....' ")?

Thanks.
Demosthenex is offline   Reply With Quote