aerkalov / ebooklib

Python E-book library for handling books in EPUB2/EPUB3 format -
https://ebooklib.readthedocs.io/
GNU Affero General Public License v3.0
1.5k stars 233 forks source link

Not able to update new chapters after reading the ebook #276

Closed vinayvp closed 1 year ago

vinayvp commented 1 year ago

Hello @aerkalov , can you please help me in this issue. I can add chapters to the newly created epub without any issues. But after I read them, i cant add the new chapters. I checked with boo.spine, [('cover', 'no'), ('nav', 'yes'), ('chapter_0', 'yes'), ('chapter_1', 'yes'), ('chapter_2', 'yes'), ('chapter_0', 'yes'), ('chapter_1', 'yes')] As you can see here, 1st instance chapter_0, chapter_1 and chapter_2 was added after creating the ebook. 2nd instance chapter_0, chapter_1 got reapeated after reading

vinayvp commented 1 year ago

Issue got resolved.

To anyone out there who are adding new chapters either immedietly after creating ebook or after reading it from a file. Always give a unique uid in EpubHtml, so that it is read properly every time

Thank you @aerkalov for such an amazing library