mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-24 04:05:39 +01:00
Select_quality takes integers and not strings
This commit is contained in:
parent
01279d018e
commit
f12287a949
@ -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)))
|
||||
|
Loading…
Reference in New Issue
Block a user