Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 10-29-2022, 07:27 PM   #946
tamaracks
Connoisseur
tamaracks began at the beginning.
 
tamaracks's Avatar
 
Posts: 53
Karma: 10
Join Date: Jun 2021
Device: Onyx Boox Nova3
Quote:
Originally Posted by capink View Post
No. That is not possible. And I wouldn't go there. If you need to disable them independently, it calls for using two different chains.
All right, thanks for the answer.
tamaracks is offline   Reply With Quote
Old 11-04-2022, 12:00 PM   #947
capink
Wizard
capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.
 
Posts: 1,199
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
Version 1.18.0

Version 1.18.0
  • Update: Changes to support python template functions.
  • Update: Single Field Edit: Remember last size for interactive dialogs.
capink is offline   Reply With Quote
Old 11-07-2022, 03:53 AM   #948
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 11,046
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Click image for larger version

Name:	2022-11-07 04_52_13-Window.png
Views:	330
Size:	12.4 KB
ID:	197581

I was trying to set up a conditional to run an ask-at-runtime single-field edit if the specified column is empty/undefined. This didn't work, neither did ''. (Also, just to be clear - I was testing with a diffferent book than shown in the screenshot, so not user error.) Do I need to use an if-then template or is there something I missed?

Last edited by ownedbycats; 11-07-2022 at 07:12 AM.
ownedbycats is offline   Reply With Quote
Old 11-07-2022, 09:36 AM   #949
capink
Wizard
capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.
 
Posts: 1,199
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
It is working for me. I tested with multiple datatypes and it always works. Can you post your chain here?
capink is offline   Reply With Quote
Old 11-07-2022, 03:33 PM   #950
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 11,046
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
It started working after a Calibre restart.
ownedbycats is offline   Reply With Quote
Old 11-08-2022, 09:16 PM   #951
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 11,046
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Out of curiosity: Is there a limit to how many times different chains could be called?

For example, Chain A calls Chain B. Chain B calls Chain C. Chain C calls Chain D. And so forth. As long as there aren't any calls that would send it into a recursion loop, will it fail after x many calls?
ownedbycats is offline   Reply With Quote
Old 11-09-2022, 04:31 AM   #952
capink
Wizard
capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.
 
Posts: 1,199
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
Theoretically no. But I have not tested this extensively. Also infinite recursion should be detected during the validation phase, before the chain runs.
capink is offline   Reply With Quote
Old 11-09-2022, 06:53 PM   #953
ghoetker
Junior Member
ghoetker began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Dec 2018
Device: None
Hitting "Yes" button after an action runs

Thank you for this great contribution. I would like to run the Extract ISBN action followed by Download Metadata and Covers. To do so, I need to hit the "Yes" button in the dialog that Extract ISBN displays after completing. I can't figure out how to do so, meaning the Download... action fires before the ISBN is added.

Hopefully I'm missing something obvious. Guidance very appreciated.

Thank you.
ghoetker is offline   Reply With Quote
Old 11-09-2022, 07:34 PM   #954
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 11,046
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
capink: I thought perhaps the "prompt for confirmation" module sandwiched between two actions would work as it temporarily halts the chain until confirmation is given. But I tried and it means you can't click on anything else, including Extract ISBN's dialog. Is this work-aroundable?

Last edited by ownedbycats; 11-09-2022 at 07:37 PM.
ownedbycats is offline   Reply With Quote
Old 11-10-2022, 02:02 AM   #955
capink
Wizard
capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.
 
Posts: 1,199
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
I cannot keep catering to every plugin out there. The solution is either in the Extract ISBN plugin if the maintainer is willing to change its behavior, or someone writing a module that works around this problem. I don't use the Extract ISBN plugin myself, so don't have much knowledge/experience with it.
capink is offline   Reply With Quote
Old 11-10-2022, 03:44 AM   #956
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 11,046
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Ok, I wanted to check something. Here's what I found:

At first, I thought "wait until any jobs started..." wasn't working when I tried— that's why I didn't mention it in the previous post. Then I realized something and here's what I think is happening:

Some plugins have a confirmation to update the library. (According to this post it's a Calibre requirement to prevent db collisions/conflicts.) This confirmation uses a self.gui.proceed_question() dialog, which is the type that pops up in the lower right hand corner with yes/no/other options.

Count Pages, Extract ISBN, and FanFicFare are the three I know of and tested with. Calibre uses it for a few things too, bulk metadata downloads is one.

When I tested: Action Chains waited for the jobs to finish, but did not account for the confirmation and immediately fired off the next action.

Last edited by ownedbycats; 11-10-2022 at 04:34 AM.
ownedbycats is offline   Reply With Quote
Old 11-10-2022, 06:01 AM   #957
capink
Wizard
capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.
 
Posts: 1,199
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
That is because I am able to detect the jobs easily by:
  • Query the job manager of all running job ids immediately before the action is launched and storing them.
  • Query the job manager of all running job ids immediately after the action is launched and storing them.
  • Figuring out which jobs were started by the action itself, by subtracting the first set of job ids from the second set.
  • Keep blocking the GUI until all the jobs started by the action are finished.

I never used any of the plugins you cited, and have no experience with proceed_question. If anyone can provide the code to detect proceed_question dialog in the middle of the action in a robust way, I will add it to the plugin.

Last edited by capink; 11-10-2022 at 06:10 AM.
capink is offline   Reply With Quote
Old 11-10-2022, 06:30 AM   #958
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,637
Karma: 12595249
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
Quote:
Originally Posted by ownedbycats View Post
Ok, I wanted to check something. Here's what I found:

At first, I thought "wait until any jobs started..." wasn't working when I tried— that's why I didn't mention it in the previous post. Then I realized something and here's what I think is happening:

Some plugins have a confirmation to update the library. (According to this post it's a Calibre requirement to prevent db collisions/conflicts.) This confirmation uses a self.gui.proceed_question() dialog, which is the type that pops up in the lower right hand corner with yes/no/other options.

Count Pages, Extract ISBN, and FanFicFare are the three I know of and tested with. Calibre uses it for a few things too, bulk metadata downloads is one.

When I tested: Action Chains waited for the jobs to finish, but did not account for the confirmation and immediately fired off the next action.
I don't know FanFicFare, but for CountPages and ExtractISBN, you can configure them to not showing the confirmation, so it would work.
Terisa de morgan is offline   Reply With Quote
Old 11-10-2022, 06:33 AM   #959
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 11,046
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Ah yeah, I forgot about the option to disable the confirmation in kiwi's plugins.

I'd think that should work, though I suppose there is a slight chance that the second job begins a split-second before the db write actually occurs.
ownedbycats is offline   Reply With Quote
Old 11-10-2022, 06:49 AM   #960
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,637
Karma: 12595249
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
Quote:
Originally Posted by ownedbycats View Post
Ah yeah, I forgot about the option to disable the confirmation in kiwi's plugins.

I'd think that should work, though I suppose there is a slight chance that the second job begins a split-second before the db write actually occurs.
Sorry, I have to care about those things at my day work, I forget them here
Terisa de morgan is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Action Chains Resources capink Plugins 78 08-05-2025 04:01 AM
[Editor Plugin] Editor Chains capink Plugins 106 06-17-2025 05:36 PM
[GUI Plugin] Noosfere_util, a companion plugin to noosfere DB lrpirlet Plugins 2 08-18-2022 03:15 PM
[GUI Plugin] Save Virtual Libraries To Column (GUI) chaley Plugins 14 04-04-2021 05:25 AM


All times are GMT -4. The time now is 11:44 PM.


MobileRead.com is a privately owned, operated and funded community.