Quote:
Originally Posted by kovidgoyal
I'm talking about an OPF in the original folder you are adding from. If there is an OPF file refering to a cover in that folder, then calibre will import the cover. Otherwise you have to add it manually later.
|
OK - now I understand.
If I create a minimal .OPF file consisting of *JUST* the guide section. IE. the same .OPF file could (hopefully) be used for all the folders containing text files, would Calibre fill in the rest?
By comparing two .OPF files from different books, it looks like this might be syntactically legal:
Code:
<?xml version='1.0' encoding='utf-8'?>
<package xmlns="http://www.idpf.org/2007/opf" unique-identifier="uuid_id">
<metadata xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:opf="http://www.idpf.org/2007/opf">
</metadata>
<guide>
<reference href="cover.jpg" type="cover" title="Cover"/>
</guide>
</package>
What it doesn't contain of course are the identifier, title and author nor the number which appears to be appended to the title in the subfolder in the Calibre Library structure.
I've only been using Calibre for a week or so (got my first e-reader three weeks ago). If above approach is a non-starter, is there a method for requesting feature requests for Calibre or help constructing a plugin which would be called from the Add logic and handle the import of a cover.jpg?
Thanks ... Alec