This document records all notable changes to Librarian.
+## 2.3.4 (2022-02-28)
+
+### Fixed:
+- Document stats totaling bug.
+- Legimi cover background position.
+
+
## 2.3.3 (2021-12-23)
### Added:
setup(
name='librarian',
- version='2.3.3',
+ version='2.3.4',
description='Converter from WolneLektury.pl XML-based language to XHTML, TXT and other formats',
author="Marek Stępniowski",
author_email='marek@stepniowski.com',
background_color = '#444'
author_color = '#444'
background_img = get_resource('res/cover.png')
+ background_top = False
format = 'JPEG'
epoch_colors = {
trg_size[0],
int(round(src.size[1] * trg_size[0] / src.size[0]))
)
- cut = (resized[1] - trg_size[1]) // 2
+ if self.background_top:
+ cut = 0
+ else:
+ cut = (resized[1] - trg_size[1]) // 2
src = src.resize(resized, Image.ANTIALIAS)
src = src.crop((0, cut, src.size[0], src.size[1] - cut))
else:
]
logos_right = False
gradient_logo_centering = True
+ background_top = True
genre_colors = {
'Artykuł': '#bf001a',
else:
data['parts'].append((part, part.get_statistics()))
for k, v in data['parts'][-1][1]['total'].items():
- data['total'][k] += v
+ data['total'][k] = data['total'].get(k, 0) + v
return data