Migrating from Delicious Library / Adding Books from .CSV, .TXT
This python script uses calibredb to import Empty Book Records into Calibre from any delimited list. As presented it is tailored to Exports from Delicious Library.
There are two calls for each book:
calibredb add -e ...
calibredb set_metadata ... id
The record id for each added book is captured to enable the second call, which is required to set user-defined fields (custom columns). In this specific case there is a true/false "read" field exported by Delicious Library that I wanted to capture. If there are no custom columns the standard metadata can be inserted with a single call using the add option.
|