mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-24 12:15:40 +01:00
kanal5: always have rtmp live flag on.
This commit is contained in:
parent
a52fbe6985
commit
40726e01a2
@ -69,8 +69,10 @@ class Kanal5(Service):
|
|||||||
bitrate = i["bitrate"]
|
bitrate = i["bitrate"]
|
||||||
if bitrate > 1000:
|
if bitrate > 1000:
|
||||||
bitrate = bitrate / 1000
|
bitrate = bitrate / 1000
|
||||||
options.other = "-W %s -y %s " % ("http://www.kanal5play.se/flash/K5StandardPlayer.swf", i["source"])
|
options2 = copy.copy(options)
|
||||||
yield RTMP(copy.copy(options), steambaseurl, bitrate)
|
options2.other = "-W %s -y %s " % ("http://www.kanal5play.se/flash/K5StandardPlayer.swf", i["source"])
|
||||||
|
options2.live = True
|
||||||
|
yield RTMP(options2, steambaseurl, bitrate)
|
||||||
|
|
||||||
url = "http://www.kanal5play.se/api/getVideo?format=IPAD&videoId=%s" % video_id
|
url = "http://www.kanal5play.se/api/getVideo?format=IPAD&videoId=%s" % video_id
|
||||||
data = json.loads(get_http_data(url, cookiejar=self.cj))
|
data = json.loads(get_http_data(url, cookiejar=self.cj))
|
||||||
|
Loading…
Reference in New Issue
Block a user