mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-28 06:04:17 +01:00
parent
e943e6bc5b
commit
16e1661efd
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user