Commit Graph

2 Commits (8319d59dd014fccb7daf04eed9d50d8a3ffdecf4)

Author SHA1 Message Date
Lukas c9723b1198
fix(docreader): read EPUB chapters in spine order (#3977)
EPUBParser took the chapter order from book.get_table_of_contents(),
which ebooklib's EpubBook does not have. The AttributeError was caught,
so every book fell through to get_items(), which follows the manifest.
The manifest may list files in any order; the spine is the reading order.
Standard Ebooks' Pride and Prejudice, for example, lists its title page
and imprint after chapter 61 in the manifest.

Read the documents in spine order, followed by any the spine leaves out
in manifest order, so the set of documents read is unchanged.
2026-10-08 01:21:50 +08:00
FFFFFFpy e21a5da422 feat: add EPUB and MHTML document support 2026-06-16 11:25:27 +08:00