mirror of
https://github.com/koreader/koreader
synced 2024-10-31 21:20:20 +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:
parent
5ce6bf87ca
commit
c115127e1c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user