From 77d50cb3cfb381137900c7568169b41ffa7b5273 Mon Sep 17 00:00:00 2001 From: Ricardo Constantino Date: Fri, 13 May 2016 16:15:09 +0100 Subject: ytdl_hook: Just check if protocol is rtmp Partial fix to #3090 --- player/lua/ytdl_hook.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/player/lua/ytdl_hook.lua b/player/lua/ytdl_hook.lua index c0ce8b97c4..97ce02dab8 100644 --- a/player/lua/ytdl_hook.lua +++ b/player/lua/ytdl_hook.lua @@ -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, -- cgit v1.2.3