View Single Post
Old 06-12-2021, 11:44 AM   #8
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 11,037
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
This worked

Code:
program:

k = $#kobocoll;

if check_yes_no('#onkobo', 0, 1, 0) then 'Send to Device'
elif check_yes_no('#onkobo', 0, 0, 1) then
    if 'Kobo Store' in k then 'Kobo Store'
	elif 'Send to Device' in k then 'Send to Device'
	else 'Sideloaded'
	fi
fi
Ideally I'd want to change it to an exact match '^Kobo Store$', but I forgot how to make it use a regexp and it's not likely to overlap any of my other collections anyways.

Last edited by ownedbycats; 06-12-2021 at 11:51 AM.
ownedbycats is offline   Reply With Quote