mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
add zip format support
This commit is contained in:
@@ -58,7 +58,8 @@ function FileChooser:readDir()
|
||||
or file_type == "pdf" or file_type == "xps" or file_type == "cbz"
|
||||
or file_type == "epub" or file_type == "txt" or file_type == "rtf"
|
||||
or file_type == "htm" or file_type == "html" or file_type == "mobi"
|
||||
or file_type == "fb2" or file_type == "chm" or file_type == "doc" then
|
||||
or file_type == "fb2" or file_type == "chm" or file_type == "doc"
|
||||
or file_type == "zip" then
|
||||
table.insert(self.files, f)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -40,7 +40,7 @@ function FileSearcher:readDir()
|
||||
or file_type == "rtf" or file_type == "htm"
|
||||
or file_type == "html" or file_type == "mobi"
|
||||
or file_type == "fb2" or file_type == "chm"
|
||||
or file_type == "doc" then
|
||||
or file_type == "doc" or file_type == "zip" then
|
||||
file_entry = {dir=d, name=f,}
|
||||
table.insert(self.files, file_entry)
|
||||
--debug("file:"..d.."/"..f)
|
||||
|
||||
@@ -44,7 +44,7 @@ function openFile(filename)
|
||||
reader = DJVUReader
|
||||
elseif file_type == "pdf" or file_type == "xps" or file_type == "cbz" then
|
||||
reader = PDFReader
|
||||
elseif file_type == "epub" or file_type == "txt" or file_type == "rtf" or file_type == "htm" or file_type == "html" or file_type == "fb2" or file_type == "chm" or file_type == "mobi" or file_type == "doc" then
|
||||
elseif file_type == "epub" or file_type == "txt" or file_type == "rtf" or file_type == "htm" or file_type == "html" or file_type == "fb2" or file_type == "chm" or file_type == "mobi" or file_type == "doc" or file_type == "zip" then
|
||||
reader = CREReader
|
||||
end
|
||||
if reader then
|
||||
|
||||
Reference in New Issue
Block a user