ytdl: Error out with http_dash_segments

Unsupported for now.
This commit is contained in:
Ricardo Constantino 2016-07-30 17:02:39 +01:00 committed by wm4
parent 546f7472fb
commit 5bcb22beea
1 changed files with 4 additions and 0 deletions

View File

@ -222,6 +222,10 @@ mp.add_hook("on_load", 10, function ()
-- DASH?
if not (json["requested_formats"] == nil) then
if (json["requested_formats"][1].protocol == "http_dash_segments") then
msg.error("MPEG-Dash Segments unsupported, add [protocol!=http_dash_segments] to your ytdl-format.")
return
end
-- video url
streamurl = json["requested_formats"][1].url