1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-30 23:24:16 +01:00

Mtvservices: better error message

Print a better error message when the video is not available
This commit is contained in:
Johan Andersson 2013-05-05 12:35:49 +02:00
parent 06368689de
commit 195e3b7184

View File

@ -33,7 +33,7 @@ class Mtvservices(Service):
for i in sa: for i in sa:
streams[int(i.attrib["height"])] = i.find("src").text streams[int(i.attrib["height"])] = i.find("src").text
if len(streams) == 0: if len(streams) == 0:
log.error("Can't find video file") log.error("Can't find video file: %s" % ss.text)
sys.exit(2) sys.exit(2)
stream = select_quality(options, streams) stream = select_quality(options, streams)
temp = stream.index("gsp.comedystor") temp = stream.index("gsp.comedystor")