1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-28 06:04:17 +01:00

svtplay: they changed the hostname for api calls

fixes #475
This commit is contained in:
Johan Andersson 2016-10-16 19:20:42 +02:00
parent e943e6bc5b
commit 16e1661efd

View File

@ -38,7 +38,7 @@ class Svtplay(Service, OpenGraphThumbMixin):
if re.match("^[0-9]+$", vid): if re.match("^[0-9]+$", vid):
old = True old = True
url = "http://www.svt.se/videoplayer-api/video/%s" % vid url = "http://api.svt.se/videoplayer-api/video/%s" % vid
data = self.http.request("get", url) data = self.http.request("get", url)
if data.status_code == 404: if data.status_code == 404:
yield ServiceError("Can't get the json file for %s" % url) yield ServiceError("Can't get the json file for %s" % url)