aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2011-08-25 00:08:59 +0200
committerPhilipp Hagemeister <phihag@phihag.de>2011-08-25 00:08:59 +0200
commiteb0387a848d5d349895932dec6d2676adc0ab9c9 (patch)
treeb7fc339697e7f25d2b56790dfb30f5c144184fa0
parentfe6dc08b79dc6b22fb0750c89df6e08c8f44b586 (diff)
Fix stty detection
-rwxr-xr-xyoutube-dl2
1 files changed, 1 insertions, 1 deletions
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