From 467e49b3ad0fef225ce146cea1e128da79434d34 Mon Sep 17 00:00:00 2001 From: Johan Andersson Date: Mon, 7 Sep 2015 19:03:31 +0200 Subject: [PATCH] sr: this should be text --- lib/svtplay_dl/service/sr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/svtplay_dl/service/sr.py b/lib/svtplay_dl/service/sr.py index eb1e7e4..16c1607 100644 --- a/lib/svtplay_dl/service/sr.py +++ b/lib/svtplay_dl/service/sr.py @@ -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"]