diff --git a/svtplay_dl.py b/svtplay_dl.py index ddb6ab5..704b90c 100755 --- a/svtplay_dl.py +++ b/svtplay_dl.py @@ -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) - test = select_quality(options, streams) - options.other = "-j '%s' -W %s" % (test["token"], options.other) - options.resume = False - download_rtmp(options, test["url"]) class Hbo(): def handle(self, url):