Skip to content

Commit 5a59450

Browse files
committed
fix: only process chapter items
1 parent 90603ce commit 5a59450

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/stas_ln_translator/process.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ def get_all_documents_in_epub(book: epub.EpubBook) -> dict[str, BeautifulSoup]:
1717
return {
1818
item.id: BeautifulSoup(item.content, "lxml")
1919
for item in book.get_items_of_type(ITEM_DOCUMENT)
20+
if item.is_chapter()
2021
}
2122

2223

0 commit comments

Comments
 (0)