View Single Post
Old 10-21-2014, 05:23 PM   #1
JupiterJones
Junior Member
JupiterJones began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Aug 2014
Device: Kindle
Access custom fields from metadata DB

Hello,

I try to write my first Calibre plugin and have some problems extracting especially the custom fields with the db api.

what I do is this:


Code:
  db = self.gui.current_db.new_api
        book_ids = self.gui.library_view.get_selected_ids()
        
        for bid in book_ids:
            
            lh =  db.get_metadata(bid)
Then I access the data with lh.pubdate, lh.title etc.

But how can I access the custom field to store them in variables ?
JupiterJones is offline   Reply With Quote