View Single Post
Old 12-24-2020, 04:56 PM   #177
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,207
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
Quote:
Originally Posted by ownedbycats View Post
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.

Last edited by capink; 12-24-2020 at 04:59 PM.
capink is offline   Reply With Quote