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

Exception: 'Incorrect EPUB spine: item with IdRef = "cover" is missing in the manifest.' #109

Closed
sattasundar opened this issue May 14, 2024 · 3 comments · Fixed by #121 or #122
Closed
Milestone

Comments

@sattasundar
Copy link

Description

Getting below exception while reading epub file

VersOne.Epub.EpubPackageException: 'Incorrect EPUB spine: item with IdRef = "cover" is missing in the manifest.'

@daviddphillips
Copy link

daviddphillips commented Dec 8, 2024

I'm seeing something similar too:
VersOne.Epub.EpubPackageException: Incorrect EPUB manifest: item with ID = "cover" is missing.
VersOne.Epub.Utils.TaskExtensionMethods.ExecuteAndUnwrapAggregateException[T]

@vers-one
Copy link
Owner

vers-one commented Dec 9, 2024

Yeah, this is the most common problem among the EPUB books. I'll add a workaround in the next release.

@vers-one
Copy link
Owner

Implemented in version 3.3.3.

@daviddphillips, for the Incorrect EPUB manifest: item with ID = "cover" is missing error: these errors will be automatically ignored, if your application doesn't pass a custom EpubReaderOptions instance into a EpubReader method. Otherwise, you will need to set EpubReaderOptions.BookCoverReaderOptions.Epub2MetadataIgnoreMissingManifestItem to true.

@sattasundar, for the Incorrect EPUB spine: item with IdRef = "cover" is missing in the manifest error: it's not a common issue among the EPUB books, so it's not ignored by default. To ignore these errors you can use the following code:

EpubReaderOptions options = new(EpubReaderOptionsPreset.RELAXED);
options.SpineReaderOptions.IgnoreMissingManifestItems = true;
EpubBook book = EpubReader.ReadBook(filePath, options);

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