pmartin/plop-reader

Open HTML if EPUB could not be read

Opened this issue · 1 comments

If the EPUB version of an entry cannot be read using the reading application (because it's malformed, for example), fallback to the HTML version of the content: it's not perfect, but it's better than nothing.

Invalid EPUB (well, EPUB that cannot be read by the reading application) are quite rare.
More or less empty EPUB (only contain table of contents) are less rare, but hard to detect (they contain the entry's images and all -- just not its textual content -- which means they are not smaller than other kind of epubs or something like that).
-> In both cases, something should be fixed on server-side : wallabag should not generate EPUB that cannot be opened or don't contain their textual content.

In addition : I have no idea for now how to detect these kind of problems... and the user can now long-touch on an entry to force reading its HTML version.

=> I'm postponing this issue for later (and I don't plan to work on it soon).