mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-24 04:05:39 +01:00
justin: exit with failure if regexp does not match
This change will avoid an ugly stacktrace, but the issue is still present. The "real" error message won't be drowned out though.
This commit is contained in:
parent
9345284547
commit
768558a0a6
@ -38,6 +38,7 @@ class Justin(Service):
|
||||
match = re.search(r"embedSWF\(\"(.*)\", \"live", data)
|
||||
if not match:
|
||||
log.error("Can't find swf file.")
|
||||
sys.exit(2)
|
||||
options.other = check_redirect(match.group(1))
|
||||
url = "http://usher.justin.tv/find/%s.xml?type=any&p=2321" % user
|
||||
options.live = True
|
||||
|
BIN
svtplay-dl
BIN
svtplay-dl
Binary file not shown.
Loading…
Reference in New Issue
Block a user