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:
parent
e26a32e140
commit
16c7240f53
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user