p0n1 / epub_to_audiobook

EPUB to audiobook converter, optimized for Audiobookshelf
MIT License
888 stars 86 forks source link

[Bug] When there's illustration in the epub, the script starts the chapter from after the illustration #41

Open hongha912 opened 5 months ago

hongha912 commented 5 months ago

Hi, thank you for this great tool! It's been so useful for me. I've just converted my first book yesterday and realized that some chapters are missing texts. Turned out that when there's an illustration in the epub in the middle of the chapter, the tool only starts converting from after the illustration onwards.

Let me know if I can provide anymore details.

p0n1 commented 5 months ago

Thanks for reporting. Would be happy to investigate and fix if I could get a sample epub file for reproducing this bug.

hongha912 commented 5 months ago

Example epub

Example failure CLI:

python main.py '/path/to/file' '/output/path' --voice_name 'en-US-AvaNeural' --language 'en-US' --chapter_start 13 --chapter_end 13

(This corresponds to Chapter 8 in the novel)

p0n1 commented 5 months ago

Got it. Will look into that later.