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:
parent
c125540498
commit
b6541100a3
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user