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

epub parsing error file not found in archive #25

Closed
lastlink opened this issue Aug 1, 2019 · 5 comments
Closed

epub parsing error file not found in archive #25

lastlink opened this issue Aug 1, 2019 · 5 comments

Comments

@lastlink
Copy link

lastlink commented Aug 1, 2019

Something different about the image asset path. file OEBPS/assets/zr0ggkC.png was not found in archive.

tensorflowformachineintelligence.epub.zip

@vers-one
Copy link
Owner

vers-one commented Aug 1, 2019

It is indeed not in the file. You can check this yourself by doing the following:

  1. Rename the tensorflowformachineintelligence.epub to tensorflowformachineintelligence.zip.
  2. Unpack the contents of the zip file.
  3. Navigate to the OEBPS/assets directory and search for the zr0ggkC.png file.

@lastlink
Copy link
Author

lastlink commented Aug 1, 2019

Could your library ignore this error? Or return some kind of parsing error property while still trying to parse?

@vers-one
Copy link
Owner

vers-one commented Aug 1, 2019

It doesn't try to read the files in advance when you use OpenBookAsync instead of ReadBookAsync. I will add an option to ignore the "file not found" errors in the next release.

@lastlink
Copy link
Author

lastlink commented Dec 3, 2019

I changed my EpubBook epubBook = EpubReader.ReadBook(bookPath); to EpubBookRef epubBook = EpubReader.OpenBook(bookPath);
and was able to resolve this issue

@vers-one vers-one removed the question label Feb 24, 2022
@vers-one
Copy link
Owner

Sorry it took three years but it is finally done! 🙂
The new configuration option is available in v3.2 and the documentation is located here.

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

No branches or pull requests

2 participants