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 32bd99e98e4f1e575fdb2a2881f833b6adae3ce3..3d43355c7538c67e29c4ee72344f14a96e2e5458 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