ytdl_hook: Just check if protocol is rtmp

Partial fix to #3090
This commit is contained in:
Ricardo Constantino 2016-05-13 16:15:09 +01:00 committed by ChrisK2
parent 3858d37b61
commit 77d50cb3cf
1 changed files with 1 additions and 1 deletions

View File

@ -253,7 +253,7 @@ mp.add_hook("on_load", 10, function ()
end
-- for rtmp
if not (json.play_path == nil) then
if (json.protocol == "rtmp") then
local rtmp_prop = append_rtmp_prop(nil,
"rtmp_tcurl", streamurl)
rtmp_prop = append_rtmp_prop(rtmp_prop,