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:
parent
5fcf3f71fd
commit
467e49b3ad
@ -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"]
|
||||
|
Loading…
Reference in New Issue
Block a user