You read metadata from OPF files using the get_metadata() function from calibre.ebooks.metadata.opf
that will give you a Metadata object that you can apply to any book in the calibre library using the set_metadata() function of self.gui.current_db.new_api
|