1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-28 10:02:17 +00:00

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

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,