Quote:
Originally Posted by DNSB
Select the #pages as the custom page column and quick and dirty template:
Code:
python:
from calibre.gui2.library.bookshelf_view import width_from_pages
def evaluate(book, context):
val = book.get('#pages')
try:
pages = max(0, int(val))
except Exception:
return '0.25'
return '0.25'
|
I like that one. Thank you.