From 447528d4c58bc3c0e28d95402b2d5d7b6cbd51af Mon Sep 17 00:00:00 2001 From: Johan Andersson Date: Sun, 21 Apr 2013 22:58:34 +0200 Subject: [PATCH] mtvservices: better error message. --- lib/svtplay_dl/service/mtvservices.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/svtplay_dl/service/mtvservices.py b/lib/svtplay_dl/service/mtvservices.py index 37eb720..8834a5c 100644 --- a/lib/svtplay_dl/service/mtvservices.py +++ b/lib/svtplay_dl/service/mtvservices.py @@ -19,7 +19,8 @@ class Mtvservices(Service): data = get_http_data(url) match = re.search("mgid=\"(mgid.*[0-9]+)\" data-wi", data) if not match: - sys.exit(2) + log.error("Can't find video file") + sys.exit(2) url = "http://media.mtvnservices.com/player/html5/mediagen/?uri=%s" % match.group(1) data = get_http_data(url) start = data.index("