View Single Post
Old 01-19-2024, 07:53 AM   #4
DrChiper
Bookish
DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.
 
DrChiper's Avatar
 
Posts: 1,037
Karma: 2006208
Join Date: Jun 2011
Device: PC, t1, t2, t3, Clara BW, Clara HD, Libra 2, Libra Color, Nxtpaper 11
Quote:
Originally Posted by capink View Post
Template language has a function called has_extra_files(). You can leverage this doing the following template search (copy paste into calibre search bar):

Code:
template:"""program: 
	if has_extra_files() then 'yes' else 'no' fi#@#:t:yes"""
A little slow because it uses templates, but it gets the job done. If you are going to use it often, it is a good idea to make this a saved search.
Yes, that works nicely. Thanks.

Quote:
Originally Posted by BetterRed View Post
I use an icon

Attachment 205884

Code:
program:
	if has_extra_files()
		then 'folder.png'
	fi
BR
I like this as it integrates in my preferred view. Nice icon too. No copyrights I hope?

PS: It would be nice to be able to add actions to the icon, so a click on the icon could open the data folder. A well, perhaps in a future version ...
PSPS: And it works on "Cover Grid --> Emblems" too ...

Last edited by DrChiper; 01-19-2024 at 08:40 AM.
DrChiper is offline   Reply With Quote