mirror of
https://github.com/mpv-player/mpv
synced 2025-03-11 08:37:59 +00:00
TOOLS/lua/autoload: fix specify loading only one type of files
Fixes: 5100e7acba
This commit is contained in:
parent
da400ed3a9
commit
df3a0fa979
@ -184,7 +184,7 @@ function scan_dir(path, current_file, dir_mode, separator, dir_depth, total_file
|
||||
if ext == nil then
|
||||
return false
|
||||
end
|
||||
return EXTENSIONS[string.lower(ext)]
|
||||
return EXTENSIONS_TARGET[string.lower(ext)]
|
||||
end)
|
||||
table.filter(dirs, function(d)
|
||||
return not ((o.ignore_hidden and string.match(d, "^%.")))
|
||||
|
Loading…
Reference in New Issue
Block a user