p0n1 / epub_to_audiobook

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

[Bug] File overwrite every iteration #20

Closed Bryksin closed 7 months ago

Bryksin commented 7 months ago

Hi, I suspect I spotted the bug, it is not affecting functionality, as eventually final file would be created successfully, however it overwrites it on every iteration

I believe this write operation must be tabbed outside of for loop and make single write when all audio segments are collected after the loop instead of overwriting over and over again file with +1 audio segment

p0n1 commented 7 months ago

Nice catch. Thanks for pointing out. Will fix it ASAP.