From 1a0c3e4693f2644e0a3255e67a669305af58f34c Mon Sep 17 00:00:00 2001 From: Johan Andersson Date: Tue, 22 May 2012 21:32:03 +0200 Subject: [PATCH] Store quality as integers and not strings --- svtplay-dl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/svtplay-dl b/svtplay-dl index 490ec0e..b3db847 100755 --- a/svtplay-dl +++ b/svtplay-dl @@ -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: