From eb0387a848d5d349895932dec6d2676adc0ab9c9 Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Thu, 25 Aug 2011 00:08:59 +0200 Subject: [PATCH] Fix stty detection --- youtube-dl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube-dl b/youtube-dl index 32bd99e98..3d43355c7 100755 --- a/youtube-dl +++ b/youtube-dl @@ -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