Quote:
Originally Posted by ownedbycats
Thank you, and happy holidays!
Another use for the new conditions: I added the same "is device connected?" template to add a new action to my send-to-device chain.
If the device is connected, it'll send the book directly there. Though it'll still appear on the list until I figure out the "if device is not connected" template.
EDIT: I kinda worked around this by setting up a "sync lists if device is connected" action. Clumsy but it works.
Attachment 184246
|
Happy holidays for you as well. Nice use for conditions.
I don't use devices in calibre, so my knowledge is not very deep. But, the plugin does define a variable called location, I believe the following template can be used as a condition that makes sure no device is attached:
Code:
template = program: globals(location)
datatype = text
comparison = "="
condition value = library
if you want to test that a certain device is not attached, why don't you use the same template in the previous post and change the comparison operator to "!="? am I misunderstanding or missing something?
Edit: Also the icon I chose for conditions does not work well the dark mode, will look for a better one.