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

viaplay: print the geolock error message.

This commit is contained in:
Johan Andersson 2014-02-05 21:46:19 +01:00
parent e26a32e140
commit 16c7240f53

View File

@ -48,6 +48,10 @@ class Viaplay(Service, OpenGraphThumbMixin):
data = get_http_data(filename) data = get_http_data(filename)
xml = ET.XML(data) xml = ET.XML(data)
filename = xml.find("Url").text 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) parse = urlparse(filename)
match = re.search("^(/[a-z0-9]{0,20})/(.*)", parse.path) match = re.search("^(/[a-z0-9]{0,20})/(.*)", parse.path)