git://git.jankratochvil.net
/
youtube-dl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix stty detection
[youtube-dl.git]
/
youtube-dl
diff --git
a/youtube-dl
b/youtube-dl
index
32bd99e
..
3d43355
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