Merge pull request #394 from tigran123/dirinfo

Bugfix: count books like BOOK.PDF and BOOK.DJVU
This commit is contained in:
Dobrica Pavlinušić
2012-10-08 06:43:13 -07:00

View File

@@ -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