![]() |
#946 |
Connoisseur
![]() Posts: 53
Karma: 10
Join Date: Jun 2021
Device: Onyx Boox Nova3
|
|
![]() |
![]() |
![]() |
#947 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,199
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
|
Version 1.18.0
Version 1.18.0
|
![]() |
![]() |
![]() |
#948 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,046
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
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. |
![]() |
![]() |
![]() |
#949 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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?
|
![]() |
![]() |
![]() |
#950 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
![]() |
![]() |
![]() |
![]() |
#951 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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? |
![]() |
![]() |
![]() |
#952 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
![]() |
#953 |
Junior Member
![]() 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. |
![]() |
![]() |
![]() |
#954 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#955 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
![]() |
#956 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#957 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,199
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
|
That is because I am able to detect the jobs easily by:
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. |
![]() |
![]() |
![]() |
#958 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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:
|
|
![]() |
![]() |
![]() |
#959 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#960 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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:
![]() |
|
![]() |
![]() |
![]() |
|
![]() |
||||
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 |