mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-24 12:15:40 +01:00
svtplay: Better error message
This commit is contained in:
parent
be75c47419
commit
b540fb8992
@ -47,7 +47,7 @@ class Svtplay(Service, OpenGraphThumbMixin):
|
|||||||
try:
|
try:
|
||||||
data = json.loads(get_http_data(dataurl))
|
data = json.loads(get_http_data(dataurl))
|
||||||
except HTTPError:
|
except HTTPError:
|
||||||
log.error("Can't get api page.")
|
log.error("Can't get api page. this is a bug.")
|
||||||
return
|
return
|
||||||
if "live" in data["video"]:
|
if "live" in data["video"]:
|
||||||
options.live = data["video"]["live"]
|
options.live = data["video"]["live"]
|
||||||
|
Loading…
Reference in New Issue
Block a user