View Single Post
Old 02-15-2018, 06:24 PM   #7
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,079
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by ilovejedd View Post
Thanks!

This got me the raw data needed:
Code:
{:'select(formats_sizes(),'EPUB')'}
I basically want to replace the default Size (MB) column with a Size (KB) or maybe just Size with the numbers formatted with human_readable() showing the EPUB file size instead of the size of the largest file.

I have another question, if I wanted it displayed as #,### (in KB), can I store in a number-type custom column and use just the display format options to prettify? Or do I need to store the data first in an number-type custom column and then create another custom column (built from other columns) to get the prettified formatting?

For speed, I'm guessing minimizing filesystem access is best so better to have a placeholder for file size rather than call formats_sizes() for each book in the library every time I open Calibre?

Thanks again!
Not a good plan
That (and some others) field auto updates during the normal management of books.

Use a Custom field for stable data
theducks is offline   Reply With Quote