12-01-2018, 07:13 PM | #1 |
Enthusiast
Posts: 48
Karma: 10
Join Date: Mar 2008
Device: HTC-p3000
|
Programmatically adding custom columns
What is the interface to add custom columns? (stand-alone program run via "calibre-debug")
Background: I'm trying to programmatically prepare and populate a full library and I have several non-standard info to handle. If I understand it correctly I can stick arbitrary data to Metadata instances before I call "db.add_books(my_list)", but, in order for this to work the custom columns should already exist. I would like to avoid creating them manually in the UI. TiA! |
12-01-2018, 10:42 PM | #2 |
creator of calibre
Posts: 43,826
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
easiest to use calibredb.exe for this. It has an add_custom_column action
|
Tags |
custom column, programming api |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Adding Author Links Programmatically through cli or the api | klackerz | Calibre | 2 | 06-20-2017 05:05 AM |
Custom columns not being set when adding books programmatically | Howlingwolf | Development | 4 | 12-10-2014 07:45 AM |
Custom columns when adding books | BookJunkieLI | Library Management | 9 | 06-10-2013 08:30 AM |
Programmatically adding/editing metadata | northernbio | Library Management | 6 | 12-29-2012 05:59 PM |
Working with DateTime custom columns programmatically? | kiwidude | Development | 13 | 12-15-2011 11:09 AM |