Fix stty detection
authorPhilipp Hagemeister <phihag@phihag.de>
Wed, 24 Aug 2011 22:08:59 +0000 (00:08 +0200)
committerPhilipp Hagemeister <phihag@phihag.de>
Wed, 24 Aug 2011 22:08:59 +0000 (00:08 +0200)
youtube-dl

index 32bd99e..3d43355 100755 (executable)
@@ -2999,7 +2999,7 @@ def parseOpts():
                try:
                        sp = subprocess.Popen(['stty', 'size'], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
                        out,err = sp.communicate()
-                       return out.split()[1]
+                       return int(out.split()[1])
                except:
                        pass
                return None