1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-27 21:54:17 +01:00

nrk: they dont use https for the api call

This commit is contained in:
Johan Andersson 2016-09-02 00:42:10 +02:00
parent 4afc74c415
commit 37688133b9

View File

@ -28,8 +28,7 @@ class Nrk(Service, OpenGraphThumbMixin):
return
# Get media element details
parse = urlparse(self.url)
dataurl = "%s://v8.psapi.nrk.no/mediaelement/%s" % (parse.scheme, video_id)
dataurl = "http://v8.psapi.nrk.no/mediaelement/%s" % (video_id)
data = self.http.request("get", dataurl).text
data = json.loads(data)
manifest_url = data["mediaUrl"]