mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-24 04:05:39 +01:00
svtplay: show the right url when it can’t find the json page.
This commit is contained in:
parent
ebb7049e19
commit
28581838b0
@ -50,7 +50,7 @@ class Svtplay(Service, OpenGraphThumbMixin):
|
||||
dataurl = "%s&output=json" % url
|
||||
data = self.http.request("get", dataurl)
|
||||
if data.status_code == 404:
|
||||
yield ServiceError("Can't get the json file for %s" % self.json)
|
||||
yield ServiceError("Can't get the json file for %s" % dataurl)
|
||||
return
|
||||
data = data.json()
|
||||
if "live" in data["video"]:
|
||||
|
Loading…
Reference in New Issue
Block a user