From df3a0fa9791e6f65226ea5dccc9ca410095b05c0 Mon Sep 17 00:00:00 2001 From: dyphire Date: Thu, 14 Sep 2023 19:22:52 +0800 Subject: [PATCH] TOOLS/lua/autoload: fix specify loading only one type of files Fixes: https://github.com/mpv-player/mpv/commit/5100e7acbabd52b7ebc996e1c73df059e7664018 --- TOOLS/lua/autoload.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, "^%.")))