mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-27 21:54:17 +01:00
Store quality as integers and not strings
This commit is contained in:
parent
f12287a949
commit
1a0c3e4693
@ -517,7 +517,7 @@ class Svtplay():
|
|||||||
streams = {}
|
streams = {}
|
||||||
for f in tmp:
|
for f in tmp:
|
||||||
match = re.search('url:(.*)\,bitrate:([0-9]+)', f)
|
match = re.search('url:(.*)\,bitrate:([0-9]+)', f)
|
||||||
streams[match.group(2)] = match.group(1)
|
streams[int(match.group(2))] = match.group(1)
|
||||||
|
|
||||||
filename = select_quality(self.options, streams)
|
filename = select_quality(self.options, streams)
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user