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

aftonbladet: use text instead of content

This commit is contained in:
Johan Andersson 2015-09-06 16:02:54 +02:00
parent 56bef49edf
commit 8507219bf0

View File

@ -38,12 +38,12 @@ class Aftonbladet(Service):
if not options.live:
dataurl = "http://aftonbladet-play-metadata.cdn.drvideo.aptoma.no/video/%s.json" % videoId
data = self.http.request("get", dataurl).content
data = self.http.request("get", dataurl).text
data = json.loads(data)
videoId = data["videoId"]
streamsurl = "http://aftonbladet-play-static-ext.cdn.drvideo.aptoma.no/actions/video/?id=%s&formats&callback=" % videoId
data = self.http.request("get", streamsurl).content
data = self.http.request("get", streamsurl).text
streams = json.loads(data)
hlsstreams = streams["formats"]["hls"]
if "level3" in hlsstreams.keys():