diff --git a/abogen/book_handler.py b/abogen/book_handler.py index 8f920ae..975bcb8 100644 --- a/abogen/book_handler.py +++ b/abogen/book_handler.py @@ -325,7 +325,7 @@ class HandlerDialog(QDialog): ) # 3. If still no nav_item, check for NCX or fallback to NAV HTML in all ITEM_DOCUMENTs - ncx_constant = getattr(epub, 'ITEM_NCX', None) + ncx_constant = getattr(epub, "ITEM_NCX", None) if not nav_item and ncx_constant is not None: ncx_items = list(self.book.get_items_of_type(ncx_constant)) if ncx_items: @@ -337,13 +337,15 @@ class HandlerDialog(QDialog): for item in self.book.get_items_of_type(ebooklib.ITEM_DOCUMENT): try: html_content = item.get_content().decode("utf-8", errors="ignore") - if '