1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-24 04:05:39 +01:00

select_quality: fix argument parsing

Instead of parsing the argument to --stream-prio as a comma separated listed, it
was accidentally handled as a space separated list.
This commit is contained in:
Olof Johansson 2016-03-29 19:49:54 +02:00
parent c125540498
commit b6541100a3

View File

@ -117,7 +117,9 @@ def select_quality(options, streams):
# Extract protocol prio, in the form of "hls,hds,http,rtmp",
# we want it as a list
proto_prio = (options.stream_prio or '').split() or None
proto_prio = None
if options.stream_prio:
proto_prio = options.stream_prio.split(',')
return [x for
x in prio_streams(streams, protocol_prio=proto_prio)