ytdl_hook: actually use the script option from 87d3af6

This commit is contained in:
Ricardo Constantino 2018-01-07 16:15:47 +00:00
parent 87d3af6f19
commit b62066433d
No known key found for this signature in database
GPG Key ID: EFD16019AE4FF531
1 changed files with 1 additions and 1 deletions

View File

@ -302,7 +302,7 @@ local function add_single_video(json)
end
end
mp.add_hook(try_ytdl_first and "on_load" or "on_load_fail", 10, function ()
mp.add_hook(o.try_ytdl_first and "on_load" or "on_load_fail", 10, function ()
local url = mp.get_property("stream-open-filename")
local start_time = os.clock()
if (url:find("ytdl://") == 1) or