Question about a plugin to finish
Hi,
I'm trying to make a plugin for automating some usual tasks I do when I process ebooks. I want to perform a task after the Count pages plugin finishes, and I launch the plugin inside my own plugin.
My problem comes when I want to wait till the plugin finishes. As I launch it with load_actual_plugin, if I call to job_manager.has_jobs () no job is found. I try to sleep some time and check if the page column is fulfilled. This works only if I launch an auxiliary dialog, which does nothing, but Iif I don't launch that dialog I have a never ending loop, as it looks like the field is never updated (and no indication of job is included at the GUI).
I can live with the auxiliary dialog, but I would like to know is there is a better method (yes, it's a rudimentary way buy I don't have a lot of knowledge of calibre this is my best approach).
Thank you very much in advance.
|