View Single Post
Old 02-15-2018, 04:26 PM   #6
ilovejedd
hopeless n00b
ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.
 
ilovejedd's Avatar
 
Posts: 5,110
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
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!
ilovejedd is offline   Reply With Quote