1
0
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:
Johan Andersson 2014-11-26 16:12:39 +01:00
parent be75c47419
commit b540fb8992

View File

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