From a3cd7d4966a951d16005bd12a98b94f41878dd60 Mon Sep 17 00:00:00 2001 From: Johan Andersson Date: Fri, 23 Nov 2012 16:46:54 +0100 Subject: [PATCH] svtplay: fix a crash when bitrate is not zero --- svtplay-dl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/svtplay-dl b/svtplay-dl index 92509f4..c6339bb 100755 --- a/svtplay-dl +++ b/svtplay-dl @@ -24,7 +24,7 @@ import binascii import StringIO import hashlib -__version__ = "0.8.2012.11.10" +__version__ = "0.8.2012.11.23" def readbyte(data, pos): return struct.unpack("B", data[pos])[0] @@ -857,7 +857,7 @@ class Svtplay(): streams[int(i["bitrate"])] = stream if len(streams) == 1: - test = streams[0] + test = streams[streams.keys()[0]] else: test = select_quality(self.options, streams)