Set default 'cre_storage_size_factor' also in coverbrowser (#3733)

pull/3735/head
poire-z 6 years ago committed by GitHub
parent 5cd51ea0fe
commit fdb8dfd295
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -308,8 +308,9 @@ function BookInfoManager:extractBookInfo(filepath, cover_specs)
-- cre.initCache("", 1024*1024*32) -- empty path = no cache
-- But it's best to use a cache for quicker and less memory
-- usage when opening big books:
local default_cre_storage_size_factor = 20 -- note: keep in sync with the one in credocument.lua
cre.initCache(self.tmpcr3cache, 0, -- 0 = previous book caches are removed when opening a book
true, G_reader_settings:readSetting("cre_storage_size_factor")) -- avoid CRE WARNINGs
true, G_reader_settings:readSetting("cre_storage_size_factor") or default_cre_storage_size_factor)
self.cre_cache_overriden = true
end

Loading…
Cancel
Save