mirror of
https://github.com/mpv-player/mpv
synced 2024-12-22 06:42:03 +00:00
TOOLS/autoload: Fixed broken "disabled" option
`--script-opts=autoload-disabled=yes` now properly stops the script from running.
This commit is contained in:
parent
4d1269d9db
commit
4a0fcdfbd8
@ -92,6 +92,7 @@ function find_and_add_entries()
|
||||
msg.trace(("dir: %s, filename: %s"):format(dir, filename))
|
||||
if o.disabled then
|
||||
msg.verbose("stopping: autoload disabled")
|
||||
return
|
||||
elseif #dir == 0 then
|
||||
msg.verbose("stopping: not a local path")
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user