1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-27 21:54:17 +01:00

Select_quality takes integers and not strings

This commit is contained in:
Johan Andersson 2012-05-22 00:22:28 +02:00
parent 01279d018e
commit f12287a949

View File

@ -142,7 +142,7 @@ def select_quality(options, streams):
quality = sort.pop()
try:
selected = streams[quality]
selected = streams[int(quality)]
except KeyError:
logging.error("Can't find that quality. (Try one of: %s)",
", ".join(map(str, sort)))