Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Development

Notices

Reply
 
Thread Tools Search this Thread
Old 12-01-2018, 08:13 PM   #1
ZioNemo
Enthusiast
ZioNemo began at the beginning.
 
Posts: 43
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!
ZioNemo is offline   Reply With Quote
Old 12-01-2018, 11:42 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 33,722
Karma: 10215826
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
easiest to use calibredb.exe for this. It has an add_custom_column action
kovidgoyal is offline   Reply With Quote
Reply

Tags
custom column, programming api

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding Author Links Programmatically through cli or the api klackerz Calibre 2 06-20-2017 06:05 AM
Custom columns not being set when adding books programmatically Howlingwolf Development 4 12-10-2014 08:45 AM
Custom columns when adding books BookJunkieLI Library Management 9 06-10-2013 09:30 AM
Programmatically adding/editing metadata northernbio Library Management 6 12-29-2012 06:59 PM
Working with DateTime custom columns programmatically? kiwidude Development 13 12-15-2011 12:09 PM


All times are GMT -4. The time now is 01:29 PM.


MobileRead.com is a privately owned, operated and funded community.