1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-27 21:54:17 +01:00

tv4play: Look for rtmp in scheme

Sometimes when you login you have rtmpe streams
instead of rtmp.
This commit is contained in:
Johan Andersson 2014-12-20 23:00:06 +01:00
parent 9f0587a68c
commit d8978edbc2

View File

@ -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)