1
0
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:
Andreas Wennerberg 2018-06-20 23:06:27 +02:00 committed by Ricardo Constantino
parent 4d1269d9db
commit 4a0fcdfbd8

View File

@ -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