View Single Post
Old 01-28-2019, 01:08 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,414
Karma: 27757236
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You can do anything calibre itself can do from a plugin, there is no API that is not accessible. For instance if you want to trigger the merge action from your plugin, you can do:

Code:
self.gui.iactions['Edit metadata'].merge_books()
see the code of the merge_books() function in edit_metadata.py in the calibre source code for parameters to pass or if you want to manually do some things that function does.
kovidgoyal is offline   Reply With Quote