summaryrefslogtreecommitdiffstats
path: root/TOOLS
diff options
context:
space:
mode:
authorChristoph Heinrich <christoph.heinrich@student.tugraz.at>2023-09-15 22:46:40 +0200
committerDudemanguy <random342@airmail.cc>2023-09-15 21:19:34 +0000
commit3972fd1be4ef0f8fe083b43e41c3e06104003a3c (patch)
tree2350b47d645210b2d033ef3565726849c55165a5 /TOOLS
parent43e960e1f6e27f0309c3723d2f88abcb5e9e2a52 (diff)
downloadmpv-3972fd1be4ef0f8fe083b43e41c3e06104003a3c.tar.bz2
mpv-3972fd1be4ef0f8fe083b43e41c3e06104003a3c.tar.xz
TOOLS/lua/autoload: rename local variable to lowercase
Diffstat (limited to 'TOOLS')
-rw-r--r--TOOLS/lua/autoload.lua12
1 files changed, 6 insertions, 6 deletions
diff --git a/TOOLS/lua/autoload.lua b/TOOLS/lua/autoload.lua
index 92319d586f..ea64d11297 100644
--- a/TOOLS/lua/autoload.lua
+++ b/TOOLS/lua/autoload.lua
@@ -237,17 +237,17 @@ function find_and_add_entries()
end
end
- local EXTENSIONS_TARGET = {}
+ local extensions = {}
if o.same_type then
if EXTENSIONS_VIDEO[string.lower(this_ext)] ~= nil then
- EXTENSIONS_TARGET = EXTENSIONS_VIDEO
+ extensions = EXTENSIONS_VIDEO
elseif EXTENSIONS_AUDIO[string.lower(this_ext)] ~= nil then
- EXTENSIONS_TARGET = EXTENSIONS_AUDIO
+ extensions = EXTENSIONS_AUDIO
else
- EXTENSIONS_TARGET = EXTENSIONS_IMAGES
+ extensions = EXTENSIONS_IMAGES
end
else
- EXTENSIONS_TARGET = EXTENSIONS
+ extensions = EXTENSIONS
end
local pl = mp.get_property_native("playlist", {})
@@ -259,7 +259,7 @@ function find_and_add_entries()
do
local dir_mode = o.directory_mode or mp.get_property("directory-mode", "lazy")
local separator = mp.get_property_native("platform") == "windows" and "\\" or "/"
- scan_dir(autoloaded_dir, path, dir_mode, separator, 0, files, EXTENSIONS_TARGET)
+ scan_dir(autoloaded_dir, path, dir_mode, separator, 0, files, extensions)
end
if next(files) == nil then