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 07-14-2017, 01:46 PM   #1
annoywife
Junior Member
annoywife began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jan 2015
Device: none
Reading file metadata with "add_books"

Hi there! I have been using the database interface API's "add_books" to great success, but one thing I have not grasped yet is how to instruct calibre to attempt to read metadata, extract a cover image, etc. from added files. What's the right way to go about this after utilizing "add_books" and getting the list of newly added book ids? Appreciate your time.
annoywife is offline   Reply With Quote
Advert
Old 07-14-2017, 02:29 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: 31,422
Karma: 8154029
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You pas in the metadata to add_books. You read it using get_metadata() or metadata_from_formats() in the calibre.ebooks.metadata.meta module
kovidgoyal is online now   Reply With Quote
Old 07-14-2017, 06:16 PM   #3
annoywife
Junior Member
annoywife began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jan 2015
Device: none
Perfect! Exactly what I needed. Appreciate the quick and helpful response!
annoywife is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
regarding "Guessing metadata from file names" function kevin4fly Devices 8 06-05-2015 02:09 AM
Help with "Guessing metadata from file names" Justy Library Management 22 08-15-2011 06:13 AM
"Configure metadata from file name" help! JubileeBurger Library Management 1 05-31-2011 04:41 PM
Get "Tag" metadata from file name dosyoyas Calibre 2 01-13-2010 01:09 PM


All times are GMT -4. The time now is 07:44 AM.


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