View Single Post
Old 12-22-2020, 04:36 PM   #14
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,449
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by chris33 View Post
Hi all,
This is following thread:
Calibre > Plugins > Reload this Page New to plugin: need help on reference guide
Which should be moved here as DaltonST suggests.

I would like to update the metadata field values from a modifed exported opf file.
I don't feel I can reimport that opf as a single import/update.
I can parse it and update fields one by one.
I'm not sure how to access the resources probably with something like:
Code:
self.gui.iactions['Edit Metadata'].edit_metadata()....
but cannot put a hand on the fields.

What do you recommend ?
Thank you
Does calibre.db.cache.set_field() (gui.library_view.model().db.new_api.set_field()) do what you want?
chaley is offline   Reply With Quote