View Single Post
Old 09-16-2014, 03:07 PM   #1
EnergyLens
Hack
EnergyLens began at the beginning.
 
Posts: 34
Karma: 12
Join Date: Dec 2009
Device: Kobo Aura HD, Kindle Paperwhite
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.
Attached Files
File Type: zip ImportBooks.py.zip (1.3 KB, 213 views)
EnergyLens is offline   Reply With Quote