TOOLS/lua/autoload: fix specify loading only one type of files

Fixes: https://github.com/mpv-player/mpv/commit/5100e7acbabd52b7ebc996e1c73df059e7664018
This commit is contained in:
dyphire authored and Dudemanguy committed 2023-09-14 13:40:19 +00:00
1 parent da400ed3a9
commit df3a0fa979
1 file changed
+1 -1
+1 -1
View File
@@ -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, "^%.")))