[fbreader] Relax restrictions on EPUB files

Some epubs are detected by libmagic as application/zip rather than
application/epub+zip. Let's give those a chance too.
This commit is contained in:
Slava Monich 2015-07-18 00:49:10 +03:00
parent 135f196868
commit 36e69aef3b

View file

@ -51,7 +51,7 @@ bool OEBPlugin::acceptsFile(const ZLFile &file) const {
return
mimeType == ZLMimeType::APPLICATION_EPUB_ZIP ||
(mimeType == ZLMimeType::APPLICATION_XML && extension == OPF) ||
(mimeType == ZLMimeType::APPLICATION_ZIP && extension == OEBZIP);
(mimeType == ZLMimeType::APPLICATION_ZIP && (extension == OEBZIP || extension == EPUB));
}
return extension == OPF || extension == OEBZIP || extension == EPUB;
}