View Single Post
Old 09-20-2020, 07:09 PM   #21
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,476
Karma: 8025702
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by JimmXinu View Post
It's not polished, obviously, but this does what I wanted:
[...]
chaley was right about that. I've updated the function above to also notice when the device is not present.
If this works for you with the 'is_device_present' check then I can add it as a standard template function.

One issue I see is that if someone has multiple devices of the same kind, e.g., multiple kindles, then there is no way to disambiguate them using the device name.
chaley is offline   Reply With Quote