Quote:
Originally Posted by kovidgoyal
Viewer plugins have no access to the database. They cannot since the the viewer can be run on books outside of a calibre library as well. I assume what you want to do is have calibre run embed metadata automatically when you click the view button?
If so, create a calibre plugin that duplicates the builtin view plugin, except that it run the embed metadata plugin before opening the file in the viewer. Then you can use this plugin to replace the view button in your calibre.
|
Thank you for this idea, I haven't done exactly the same but a plugin which modifies metadata and calls to the builtin view plugin. Now it's working (not yet but it is in its way).
Thank you again.