|
|
@ -261,12 +261,12 @@ function CalibreMetadata:init(dir, is_search)
|
|
|
|
if is_search then
|
|
|
|
if is_search then
|
|
|
|
self:cleanUnused(is_search)
|
|
|
|
self:cleanUnused(is_search)
|
|
|
|
msg = string.format("(search) in %.3f milliseconds: %d books",
|
|
|
|
msg = string.format("(search) in %.3f milliseconds: %d books",
|
|
|
|
time.to_ms(time.since(start_time())), #self.books)
|
|
|
|
time.to_ms(time.since(start_time)), #self.books)
|
|
|
|
else
|
|
|
|
else
|
|
|
|
local deleted_count = self:prune()
|
|
|
|
local deleted_count = self:prune()
|
|
|
|
self:cleanUnused()
|
|
|
|
self:cleanUnused()
|
|
|
|
msg = string.format("in %.3f milliseconds: %d books. %d pruned",
|
|
|
|
msg = string.format("in %.3f milliseconds: %d books. %d pruned",
|
|
|
|
time.to_ms(time.since(start_time())), #self.books, deleted_count)
|
|
|
|
time.to_ms(time.since(start_time)), #self.books, deleted_count)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
logger.info(string.format("calibre info loaded from disk %s", msg))
|
|
|
|
logger.info(string.format("calibre info loaded from disk %s", msg))
|
|
|
|
return true
|
|
|
|
return true
|
|
|
|