From 16c7240f53f72f8ebcfdc9f06fd3e149d572d382 Mon Sep 17 00:00:00 2001 From: Johan Andersson Date: Wed, 5 Feb 2014 21:46:19 +0100 Subject: [PATCH] viaplay: print the geolock error message. --- lib/svtplay_dl/service/viaplay.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/svtplay_dl/service/viaplay.py b/lib/svtplay_dl/service/viaplay.py index e05e88e..342f7e6 100644 --- a/lib/svtplay_dl/service/viaplay.py +++ b/lib/svtplay_dl/service/viaplay.py @@ -48,6 +48,10 @@ class Viaplay(Service, OpenGraphThumbMixin): data = get_http_data(filename) xml = ET.XML(data) filename = xml.find("Url").text + if xml.find("Msg").text: + log.error("Can't download file:") + log.error(xml.find("Msg").text) + sys.exit(2) parse = urlparse(filename) match = re.search("^(/[a-z0-9]{0,20})/(.*)", parse.path)