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, 07:13 PM   #1
ZioNemo
Enthusiast
ZioNemo began at the beginning.
 
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!
ZioNemo is offline   Reply With Quote
Old 12-01-2018, 10: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: 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
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 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


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


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