Quote:
Originally Posted by ownedbycats
Be careful. Don't put your Calibre library in GDrive. It will break badly.
I use this as a custom template function. Should work as a composite column. Change as needed.
Code:
program:
if $$#percentread >=#1 && $$#percentread <=#99
then 'currentlyreading'
elif "To Be Read" in $#readinglist && $$#percentread ==#0
then 'toberead'
elif $$#percentread >=#100
then 'read'
elif $$#percentread == 'None'
then 'undefined'
elif $$#percentread >=#0
then 'unread'
fi
|
I am testing the template but if I put 0 the template error comes out.
TEMPLATE ERROR Interpreter: Unknown field '#readinglist' - line number 6