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:
parent
04cc9930f5
commit
11c4209899
@ -54,9 +54,11 @@ class Justin():
|
||||
streams[int(i.find("video_height").text)] = stream
|
||||
except AttributeError:
|
||||
pass
|
||||
|
||||
test = select_quality(options, streams)
|
||||
options.other = "-j '%s' -W %s" % (test["token"], options.other)
|
||||
options.resume = False
|
||||
download_rtmp(options, test["url"])
|
||||
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user