From 9d05775ad3576582aeb43bdd95224c58f17e1673 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Fri, 15 Jul 2022 10:16:32 +0200 Subject: [PATCH 1/1] fix --- CHANGELOG.md | 6 ++++++ setup.py | 2 +- src/librarian/document.py | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 56ccb9f..fd3ea03 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,12 @@ This document records all notable changes to Librarian. +@@ 2.4.6 (2022-07-15) + +# Fixed: +- Bug in reading child books. + + ## 2.4.5 (2022-07-08) # Fixed diff --git a/setup.py b/setup.py index 7056674..a48f2d7 100755 --- a/setup.py +++ b/setup.py @@ -22,7 +22,7 @@ def whole_tree(prefix, path): setup( name='librarian', - version='2.4.5', + version='2.4.6', description='Converter from WolneLektury.pl XML-based language to XHTML, TXT and other formats', author="Marek Stępniowski", author_email='marek@stepniowski.com', diff --git a/src/librarian/document.py b/src/librarian/document.py index a3ee093..fbaf6ca 100644 --- a/src/librarian/document.py +++ b/src/librarian/document.py @@ -33,7 +33,7 @@ class WLDocument: def children(self): for part_uri in self.meta.parts or []: yield type(self)( - filename=self.provider.by_uri(part_uri), + filename=self.provider.by_slug(part_uri.slug), provider=self.provider ) -- 2.20.1