1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-24 04:05:39 +01:00

tv4play: send other as a argument to the fetcher class

This commit is contained in:
Johan Andersson 2018-05-21 22:13:30 +02:00
parent bbc0b70368
commit 81e327ec19

View File

@ -83,8 +83,8 @@ class Tv4play(Service, OpenGraphThumbMixin):
parse = urlparse(i.find("url").text)
if "rtmp" in base.scheme:
swf = "http://www.tv4play.se/flash/tv4playflashlets.swf"
self.options.other = "-W {0} -y {1}".format(swf, i.find("url").text)
yield RTMP(copy.copy(self.config), i.find("base").text, i.find("bitrate").text)
yield RTMP(copy.copy(self.config), i.find("base").text, i.find("bitrate").text, output=self.output,
other="-W {0} -y {1}".format(swf, i.find("url").text))
elif parse.path[len(parse.path) - 3:len(parse.path)] == "f4m":
streams = hdsparse(self.config, self.http.request("get", i.find("url").text,
params={"hdcore": "3.7.0"}), i.find("url").text, output=self.output)