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

svtplay: show the right url when it can’t find the json page.

This commit is contained in:
Johan Andersson 2015-10-02 10:21:11 +02:00
parent ebb7049e19
commit 28581838b0

View File

@ -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"]: