mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
[fix] DocumentRegistry: don't create empty sdr and add hasProvider() (#3675)
As suggested by @poire-z https://github.com/koreader/koreader/pull/3653#issuecomment-364663156
This commit is contained in:
@@ -38,7 +38,7 @@ function FtpApi:listFolder(address_path,folder_path)
|
||||
type = type,
|
||||
})
|
||||
--show only file with supported formats
|
||||
elseif extension and DocumentRegistry:getProvider(item) then
|
||||
elseif extension and DocumentRegistry:hasProvider(item) then
|
||||
type = "file"
|
||||
table.insert(ftp_file, {
|
||||
text = file_name,
|
||||
|
||||
Reference in New Issue
Block a user