1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-24 04:05:39 +01:00

justin.tv: write an error message when we cant find any streams

This commit is contained in:
Johan Andersson 2013-03-10 14:05:46 +01:00 committed by Olof Johansson
parent 04cc9930f5
commit 11c4209899

View File

@ -54,9 +54,11 @@ class Justin():
streams[int(i.find("video_height").text)] = stream
except AttributeError:
pass
if len(streams) > 0:
test = select_quality(options, streams)
options.other = "-j '%s' -W %s" % (test["token"], options.other)
options.resume = False
download_rtmp(options, test["url"])
else:
log.error("Can't any streams")
sys.exit(2)