1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-24 12:15:40 +01:00

tv4play: use webvtt instead of smi files.

fixes #631
This commit is contained in:
Johan Andersson 2017-09-17 11:20:31 +02:00
parent bbe146311d
commit 983d2f78e5

View File

@ -98,8 +98,8 @@ class Tv4play(Service, OpenGraphThumbMixin):
if streams:
for n in list(streams.keys()):
yield streams[n]
elif i.find("mediaFormat").text == "smi":
yield subtitle(copy.copy(self.options), "smi", i.find("url").text)
elif i.find("mediaFormat").text == "webvtt":
yield subtitle(copy.copy(self.options), "wrst", i.find("url").text)
url = "https://prima.tv4play.se/api/web/asset/%s/play?protocol=hls3" % vid
data = self.http.request("get", url, cookies=self.cookies).content