Quote:
Originally Posted by drawson1
@davidfor - I'm actually trying to automate the import from Digital Editions . . . I'd prefer that my little script does this as silently and robustly as possible
The Add Books setup is the default, ie, the "Get metadata from file contents" checkbox is checked, and the regex for import from file name is:
(?P<title>.+) - (?P<author>[^_]+)
|
With those options, calibre will attempt to read the metadata from within the book. If it can't then it will use the template. And for the example you gave, the template should put the file name into the title and calibre will set the author to "Unknown".
As to the rest, why? As you have discovered, there is a lot of work needed and calibre does it. Open the Digital Editions folder and drag-and-drop the books to the calibre window. For me, that works (almost) perfectly. The "almost" is if the metadata in the book is completely rubbish. Then I fix the title and author so that I can use download metadata to get the rest of the metadata.
As an example, for the author spelling problem, after you have added them all, select them, open the bulk metadata editor, fix it and they are all OK. When you get another book with a variation on the name, use the metadata editor and select the correct name from the drop-down.