Record file sizes when rendering book

This commit is contained in:
Kovid Goyal 2016-03-14 12:49:57 +05:30
parent 29e3817acd
commit 9dbe10d2a1

View File

@ -58,7 +58,7 @@ class Container(ContainerBase):
'spine':[name for name, is_linear in self.spine_names],
'link_uid': uuid4(),
'is_comic': input_fmt.lower() in {'cbc', 'cbz', 'cbr', 'cb7'},
'manifest': list(set(self.name_path_map) - excluded_names),
'manifest': {name:os.path.getsize(self.name_path_map[name]) for name in set(self.name_path_map) - excluded_names},
}
# Mark the spine as dirty since we have to ensure it is normalized
for name in data['spine']: