Skip to content

Commit

Permalink
bookinfomanager: handle zip
Browse files Browse the repository at this point in the history
  • Loading branch information
hius07 authored Feb 20, 2025
1 parent 546cb14 commit d4bd073
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugins/coverbrowser.koplugin/bookinfomanager.lua
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,9 @@ function BookInfoManager:extractBookInfo(filepath, cover_specs)
dbrow.filemtime = file_attr.modification

-- Proceed with extracting info
local document = DocumentRegistry:openDocument(filepath)
local ReaderUI = require("apps/reader/readerui")
local provider = ReaderUI:extendProvider(filepath, DocumentRegistry:getProvider(filepath))
local document = DocumentRegistry:openDocument(filepath, provider)
local loaded = true
if document then
local pages
Expand Down

0 comments on commit d4bd073

Please sign in to comment.