mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
[statistic plugin] Don't generate md5 sum on open document (#5528)
There is no need to generate a md5 sum for documents that were already opened.
This commit is contained in:
@@ -174,7 +174,9 @@ function ReaderStatistics:initData()
|
||||
self.data.series = book_properties.series
|
||||
|
||||
self.data.pages = self.view.document:getPageCount()
|
||||
self.data.md5 = self:partialMd5(self.document.file)
|
||||
if not self.data.md5 then
|
||||
self.data.md5 = self:partialMd5(self.document.file)
|
||||
end
|
||||
self.curr_total_time = 0
|
||||
self.curr_total_pages = 0
|
||||
self.id_curr_book = self:getIdBookDB()
|
||||
|
||||
Reference in New Issue
Block a user