View Single Post
Old 06-08-2012, 09:42 AM   #303
chaley
"chaley", not "charley"
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 5,893
Karma: 1216548
Join Date: Jan 2010
Location: France
Device: Many android devices
Quote:
Originally Posted by StreakyG View Post
Is it possible to create a custom column to show booksize in eg Bytes? When comparing for possible duplicates in my library, MB is too coarse to assume the duplication.
I agree with dwanthy that you probably don't want to use the size data to check for duplicates. The find duplicates plugin does a more thorough job. But putting that aside ...

The template for a "column built from other columns" that shows the size information in bytes is
Code:
program: booksize()
This value is the sum of all the formats associated with a book, which might not be what you want. The template to show the sizes of the individual formats is
Code:
program: formats_sizes()
See the Using General Program Mode documentation for more information on templates that begin with "program:" The documentation for the two functions is available here.

Note that the second template (formats_sizes) can cause performance problems when used in large libraries, especially if the column is sorted. The first template will slow things down a bit, but not as much as the second.
chaley is offline   Reply With Quote