1
0
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:
Johan Andersson 2012-05-22 21:32:03 +02:00
parent f12287a949
commit 1a0c3e4693

View File

@ -517,7 +517,7 @@ class Svtplay():
streams = {}
for f in tmp:
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)
else: