From d8978edbc260352e281ad438f2155a24f486b293 Mon Sep 17 00:00:00 2001 From: Johan Andersson Date: Sat, 20 Dec 2014 23:00:06 +0100 Subject: [PATCH] tv4play: Look for rtmp in scheme Sometimes when you login you have rtmpe streams instead of rtmp. --- lib/svtplay_dl/service/tv4play.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/svtplay_dl/service/tv4play.py b/lib/svtplay_dl/service/tv4play.py index 8875d99..df48e99 100644 --- a/lib/svtplay_dl/service/tv4play.py +++ b/lib/svtplay_dl/service/tv4play.py @@ -113,7 +113,7 @@ class Tv4play(Service, OpenGraphThumbMixin): if i.find("mediaFormat").text == "mp4": base = urlparse(i.find("base").text) parse = urlparse(i.find("url").text) - if base.scheme == "rtmp": + if "rtmp" in base.scheme: swf = "http://www.tv4play.se/flash/tv4playflashlets.swf" options.other = "-W %s -y %s" % (swf, i.find("url").text) yield RTMP(copy.copy(options), i.find("base").text, i.find("bitrate").text)