View Single Post
Old 11-22-2015, 06:59 AM   #1
Terisa de morgan
Grand Sorcerer
Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.
 
Terisa de morgan's Avatar
 
Posts: 6,636
Karma: 12595249
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
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.
Terisa de morgan is offline   Reply With Quote