1
0
mirror of https://github.com/mpv-player/mpv synced 2025-04-24 12:24:21 +00:00

TOOLS/lua/autoload: rename local variable to lowercase

This commit is contained in:
Christoph Heinrich 2023-09-15 22:46:40 +02:00 committed by Dudemanguy
parent 43e960e1f6
commit 3972fd1be4

View File

@ -237,17 +237,17 @@ function find_and_add_entries()
end end
end end
local EXTENSIONS_TARGET = {} local extensions = {}
if o.same_type then if o.same_type then
if EXTENSIONS_VIDEO[string.lower(this_ext)] ~= nil 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 elseif EXTENSIONS_AUDIO[string.lower(this_ext)] ~= nil then
EXTENSIONS_TARGET = EXTENSIONS_AUDIO extensions = EXTENSIONS_AUDIO
else else
EXTENSIONS_TARGET = EXTENSIONS_IMAGES extensions = EXTENSIONS_IMAGES
end end
else else
EXTENSIONS_TARGET = EXTENSIONS extensions = EXTENSIONS
end end
local pl = mp.get_property_native("playlist", {}) local pl = mp.get_property_native("playlist", {})
@ -259,7 +259,7 @@ function find_and_add_entries()
do do
local dir_mode = o.directory_mode or mp.get_property("directory-mode", "lazy") local dir_mode = o.directory_mode or mp.get_property("directory-mode", "lazy")
local separator = mp.get_property_native("platform") == "windows" and "\\" or "/" 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 end
if next(files) == nil then if next(files) == nil then