Quote:
Originally Posted by ownedbycats
I tested with the formulas action again, and it worked this time -- output looks like yours. Confusing.
Since I finished another Overdrive book, I decided to run my 'remove from device' chain in debug. Here's the actions:
Action 1: Prompt for confirmation
Action 2: Chain caller ('Clear Kobo fields')
Action 3: Add to 'Remove from Device' list
Action 4: Sync reading list
The last action, which has the Kobo Libra H2O condition, never ran.
|
Action Chains tried to run it. There is no "Conditions are not met" message.
I am running with up-to-date beta (Qt6) source and the latest released versions of Action Chains and Reading List.
I made a chain that does a reading list sync if the Folder Device is connected. The chain is simple, one action with:
- The connected_device_name() condition.
- A "Calibre Actions" action specifying Reading List / Sync Now.
Here is what happens if the condition fails (the device is not connected):
Code:
Action chains: formulas: running on_templates_update()
calling method (init_cache) of obj (selection_count)
Action chains: formulas: running on_templates_update()
calling method (flush_cache) of obj (selection_count)
Action Chains: Starting chain: ReadingList
Action chains: formulas: running on_templates_update()
Action Chains: ReadingList: Conditions are not met for action No. 1 (Calibre Actions)
Action Chains: Is db modified by chain: False
Action Chains: chain (ReadingList) finished in: 0:00:00.025961
You see the "Conditions are not met" line.
Here is what I see if the device is connected:
Code:
Action chains: formulas: running on_templates_update()
calling method (init_cache) of obj (selection_count)
Action chains: formulas: running on_templates_update()
calling method (flush_cache) of obj (selection_count)
Action Chains: Starting chain: ReadingList
Action chains: formulas: running on_templates_update()
Action Chains: ReadingList: starting action No. 1: Calibre Actions
Action Chains: Calibre Actions: paths > ['Reading List', 'Sync Now']
Action Chains: Calibre Actions: Found action: Sync Now
READING LIST: Sync Now - force_sync= True
Action Chains: Calibre Actions: Finishing run action
Action Chains: Is db modified by chain: False
Action Chains: chain (ReadingList) finished in: 0:00:00.029105
It tried to run Reading List sync and apparently succeeded.
It seems that your problem is something in Reading List, or something in the environment that causes problems when Action Chains runs the sync. What happens if you do a simple chain like mine?