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.
|