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
dd3096dc13
commit
1ec5a6cf63
@ -719,11 +719,15 @@ 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)
|
||||
|
||||
|
||||
class Hbo():
|
||||
def handle(self, url):
|
||||
|
Loading…
Reference in New Issue
Block a user