View Single Post
Old 07-07-2015, 09:44 PM   #2
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
You will need to use a custom column:

Code:
program:

sizes = formats_sizes();

ifempty(
	select(sizes, 'AZW3'),
	select(sizes, 'MOBI')
);
This will return the size of the book in bytes, preferring AZW3 over MOBI just like the device driver.

You will need to add up the sizes manually, as custom columns are not aware of the metadata for other books.


Or for Kilobytes:
Code:
program:

sizes = formats_sizes();

final_size = ifempty(
	select(sizes, 'AZW3'),
	select(sizes, 'MOBI')
);

kilobytes = list_item(
	divide(final_size, '1024'),
	'0',
	'.'
);

Last edited by eschwartz; 07-08-2015 at 03:01 AM. Reason: clarify -- "*manually*"
eschwartz is offline   Reply With Quote