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 ?