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

Cannot read epub #222

Open
ofostier opened this issue Feb 9, 2021 · 3 comments
Open

Cannot read epub #222

ofostier opened this issue Feb 9, 2021 · 3 comments

Comments

@ofostier
Copy link

ofostier commented Feb 9, 2021

Hello,

I cannot read a book cause of encoding error in the HTML structure.
For exemple i have :
content/Perrault - Contes de ma mère l'Oye_split_1.html
but real name is :
content/Perrault - Contes de ma mère l'Oye_split_1.html.

The error is raised by zipfile lib with this error :

line 1441, in getinfo
    raise KeyError(
KeyError: 'There is no item named "content/Perrault - Contes de ma mère l\'Oye_split_0.html" in the archive'

One questions :

  • There is an encoding option i can use with the read function ?

Thx

@aerkalov
Copy link
Owner

aerkalov commented Feb 9, 2021

Did you also used Ebooklib to create that EPUB file? I just did a test with this same name and don't have a problem with it. Maybe the encoding error happened when EPUB was created? If it is not a problem you can send me EPUB file to doublecheck.

@ofostier
Copy link
Author

ofostier commented Feb 10, 2021 via email

@aerkalov
Copy link
Owner

@ofostier I can't see it. If it is not a problem just send it to me at aerkalov@gmail.com

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

2 participants