@BetterRed: Rereading these posts, it sounds like you are wanting the equivalent of "Modify ePub". I believe it works by calling calibre functions to make changes to the library copies of epubs. If calibre can already do this for PDFs and RTFs when sending the books to devices, maybe this would be a better model for what you are doing. In any case, it has the code for looping over a list of books and handling a particular format.
|