1
0
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:
Olof Johansson 2014-01-01 16:01:26 +01:00
parent 9345284547
commit 768558a0a6
2 changed files with 1 additions and 0 deletions

View File

@ -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

Binary file not shown.