coverbrowser: quicker extraction of EPUB metadata (#3736)

bump crengine:
Allow for quicker loading when interested in metadata only.
Allow for more than 65535 different attribute values.
Increase gamma values range.
This commit is contained in:
poire-z
2018-03-10 22:20:54 +01:00
committed by GitHub
parent c0687ef8b1
commit db31bd4b96
3 changed files with 5 additions and 4 deletions

View File

@@ -132,9 +132,10 @@ function CreDocument:init()
self.info.configurable = true
end
function CreDocument:loadDocument()
function CreDocument:loadDocument(full_document)
if not self._loaded then
if self._document:loadDocument(self.file) then
local only_metadata = full_document == false
if self._document:loadDocument(self.file, only_metadata) then
self._loaded = true
end
end