From: Philipp Hagemeister Date: Wed, 24 Aug 2011 22:08:59 +0000 (+0200) Subject: Fix stty detection X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=eb0387a848d5d349895932dec6d2676adc0ab9c9;p=youtube-dl Fix stty detection --- 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