summaryrefslogtreecommitdiffstats
path: root/TOOLS
diff options
context:
space:
mode:
authordyphire <qimoge@gmail.com>2023-09-14 19:22:52 +0800
committerDudemanguy <random342@airmail.cc>2023-09-14 13:40:19 +0000
commitdf3a0fa9791e6f65226ea5dccc9ca410095b05c0 (patch)
tree30a02e144b133e5c9d674d7bc1208fb2ffdf2138 /TOOLS
parentda400ed3a9b54408d1b5112855a7281380a1ef52 (diff)
downloadmpv-df3a0fa9791e6f65226ea5dccc9ca410095b05c0.tar.bz2
mpv-df3a0fa9791e6f65226ea5dccc9ca410095b05c0.tar.xz
TOOLS/lua/autoload: fix specify loading only one type of files
Fixes: https://github.com/mpv-player/mpv/commit/5100e7acbabd52b7ebc996e1c73df059e7664018
Diffstat (limited to 'TOOLS')
-rw-r--r--TOOLS/lua/autoload.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/TOOLS/lua/autoload.lua b/TOOLS/lua/autoload.lua
index 77f5c14bae..bd8069ebec 100644
--- a/TOOLS/lua/autoload.lua
+++ b/TOOLS/lua/autoload.lua
@@ -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, "^%.")))