Quote:
Originally Posted by chris33
AFAIK there is no opf import, so I need to import metadata values one by one.
|
Does calibre.ebooks.metadata.opf.set_metadata do what you want?
Also, calibre.db.cache.get_metadata() returns the metadata for a given book id. You can get a db object using gui.library_view.model().db, which gives you access to the methods in db.legacy. You probably want to use gui.library_view.model().db.new_api so you can use the newer methods in db.cache.