projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe6dc08
)
Fix stty detection
author
Philipp Hagemeister
<phihag@phihag.de>
Wed, 24 Aug 2011 22:08:59 +0000
(
00:08
+0200)
committer
Philipp Hagemeister
<phihag@phihag.de>
Wed, 24 Aug 2011 22:08:59 +0000
(
00:08
+0200)
youtube-dl
patch
|
blob
|
history
diff --git
a/youtube-dl
b/youtube-dl
index 32bd99e98e4f1e575fdb2a2881f833b6adae3ce3..3d43355c7538c67e29c4ee72344f14a96e2e5458 100755
(executable)
--- 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