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:
parent
9f0587a68c
commit
d8978edbc2
@ -113,7 +113,7 @@ class Tv4play(Service, OpenGraphThumbMixin):
|
|||||||
if i.find("mediaFormat").text == "mp4":
|
if i.find("mediaFormat").text == "mp4":
|
||||||
base = urlparse(i.find("base").text)
|
base = urlparse(i.find("base").text)
|
||||||
parse = urlparse(i.find("url").text)
|
parse = urlparse(i.find("url").text)
|
||||||
if base.scheme == "rtmp":
|
if "rtmp" in base.scheme:
|
||||||
swf = "http://www.tv4play.se/flash/tv4playflashlets.swf"
|
swf = "http://www.tv4play.se/flash/tv4playflashlets.swf"
|
||||||
options.other = "-W %s -y %s" % (swf, i.find("url").text)
|
options.other = "-W %s -y %s" % (swf, i.find("url").text)
|
||||||
yield RTMP(copy.copy(options), i.find("base").text, i.find("bitrate").text)
|
yield RTMP(copy.copy(options), i.find("base").text, i.find("bitrate").text)
|
||||||
|
Loading…
Reference in New Issue
Block a user