浏览代码

Fix stty detection

Philipp Hagemeister 14 年之前
父节点
当前提交
eb0387a848
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      youtube-dl

+ 1 - 1
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