Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't change the metadata #302

Open
sayush opened this issue Mar 1, 2024 · 0 comments
Open

Can't change the metadata #302

sayush opened this issue Mar 1, 2024 · 0 comments

Comments

@sayush
Copy link

sayush commented Mar 1, 2024

I have a few epubs (part of the same series) that I want to change the title. The title before running the script was The awesome series

book = epub.read_epub(f'normal-book.epub')
book.set_title("The awesomest book ever")
book.set_language("en")
book.add_item(epub.EpubNcx())
book.add_item(epub.EpubNav())
epub.write_epub(f'compiled/awesome-book.epub', book)

When I read the book with the script below, instead of seeing The awesomest book ever, I see The awesome series

book = epub.read_epub('compiled/awesome-book.epub')
print(book.title)

I'm confused with why is it not writing the title out. I'm using

ebooklib 0.18
python 3.10.13 (Conda on Windows 10)

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant