1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-27 13:44:14 +01:00

Cosmetics

This commit is contained in:
Johan Andersson 2011-04-28 10:40:16 +02:00
parent 93c12a3bd2
commit 28f68c6ef2

View File

@ -25,7 +25,8 @@ def calc_data(byte, total):
def getrtmp(url, output, live):
""" Get the stream from RTMP """
other, other2 = ""
other =""
other2 = ""
if url[4:5] == "e":
# For encrypted streams
other = "-l 2"
@ -86,10 +87,7 @@ def main():
else:
try:
stream = streams[int(quality)]
except ValueError:
print "Err: Cant find that quality. try 2400 (720p), 1400 (high), 850 (mid) or 320 (low)"
sys.exit(2)
except KeyError:
except (ValueError, KeyError):
print "Err: Cant find that quality. try 2400 (720p), 1400 (high), 850 (mid) or 320 (low)"
sys.exit(2)
else: