Skip to content

Exception thrown reading certain epub files #7

Description

@getBoolean

This is different from #3. I have tested the file they linked and it does not throw an exception.

Describe the bug
The method ChapterReader.getChaptersImpl is throwing an exception because it can't find the key in the html map

I have identified the cause in ChapterReader.getChaptersImpl (line 34)

if (!bookRef.Content!.Html!.containsKey(contentFileName))

Where:
contentFileName is "../Text/Section00001.xhtml"
but the actual key in bookRef.Content!.Html! is "Text/Section00001.xhtml"

So it throws the exception

To Reproduce
Steps to reproduce the behavior:

  1. Open this epub
  2. See error thrown when trying to get chapters with the chapter reader (specifically with epub_view's EpubView widget)

Screenshots

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions