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

aftonbladet: request fixes

This commit is contained in:
Johan Andersson 2015-08-31 17:13:48 +02:00
parent 1bd7410cc2
commit c2ae9e99e7

View File

@ -38,7 +38,7 @@ class Aftonbladet(Service):
if not options.live:
dataurl = "http://aftonbladet-play-metadata.cdn.drvideo.aptoma.no/video/%s.json" % videoId
data = self.http.get(dataurl)
data = self.http.get(dataurl).content
data = json.loads(data)
videoId = data["videoId"]
@ -63,7 +63,7 @@ class Aftonbladet(Service):
else:
plist = "http://%s/%s/%s" % (address, path, hls["filename"])
streams = hlsparse(self.http.get(plist).text)
streams = hlsparse(plist, self.http.get(plist).text)
if streams:
for n in list(streams.keys()):
yield HLS(copy.copy(options), streams[n], n)