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

sr: this should be text

This commit is contained in:
Johan Andersson 2015-09-07 19:03:31 +02:00
parent 5fcf3f71fd
commit 467e49b3ad

View File

@ -30,7 +30,7 @@ class Sr(Service, OpenGraphThumbMixin):
return
path = quote_plus(match.group(1))
dataurl = "http://sverigesradio.se/sida/ajax/getplayerinfo?url=%s&isios=false&playertype=html5" % path
data = self.http.request("get", dataurl).content
data = self.http.request("get", dataurl).text
playerinfo = json.loads(data)["playerInfo"]
for i in playerinfo["AudioSources"]:
url = i["Url"]