mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Bugfix: count books like BOOK.PDF and BOOK.DJVU
In the function FileInfo:getFolderContent() we need to lowercase the extension before deciding if it is a book or not --- otherwise files like BOOK.PDF and BOOK.DJVU are not counted as books.
This commit is contained in:
@@ -74,7 +74,7 @@ function FileInfo:getFolderContent()
|
||||
if j == "file" then
|
||||
files = files + 1
|
||||
ftype = string.match(name, ".+%.([^.]+)")
|
||||
if ftype and ext:getReader(ftype) then
|
||||
if ftype and ext:getReader(string.lower(ftype)) then
|
||||
books = books + 1
|
||||
end
|
||||
elseif j == "directory" then
|
||||
|
||||
Reference in New Issue
Block a user