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

tv4play: changed where to find the hls videos

fixes: #498
This commit is contained in:
Sopor 2016-11-10 08:31:56 +01:00 committed by Johan Andersson
parent a9c6ad5e78
commit ee67996d1c

View File

@ -101,7 +101,7 @@ class Tv4play(Service, OpenGraphThumbMixin):
elif i.find("mediaFormat").text == "smi":
yield subtitle(copy.copy(self.options), "smi", i.find("url").text)
url = "https://prima.tv4play.se/api/web/asset/%s/play?protocol=hls" % vid
url = "https://prima.tv4play.se/api/web/asset/%s/play?protocol=hls3" % vid
data = self.http.request("get", url, cookies=self.cookies).content
xml = ET.XML(data)
ss = xml.find("items")