[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:
parent
135f196868
commit
36e69aef3b
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ bool OEBPlugin::acceptsFile(const ZLFile &file) const {
|
||||||
return
|
return
|
||||||
mimeType == ZLMimeType::APPLICATION_EPUB_ZIP ||
|
mimeType == ZLMimeType::APPLICATION_EPUB_ZIP ||
|
||||||
(mimeType == ZLMimeType::APPLICATION_XML && extension == OPF) ||
|
(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;
|
return extension == OPF || extension == OEBZIP || extension == EPUB;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue