mirror of https://github.com/mpv-player/mpv
ytdl_hook: actually use the script option from 87d3af6
This commit is contained in:
parent
87d3af6f19
commit
b62066433d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue