commit: f2dbc54066f56a98c689099b920e6a596d4ffdfc
parent 86be82610c35a684bee97b22c8d9a2a83bab1bba
Author: Sergey M․ <dstftw@gmail.com>
Date: Tue, 6 Oct 2015 22:02:28 +0600
[compat] Fix wrong lines/columns order
stty size is rows x columns
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/youtube_dl/compat.py b/youtube_dl/compat.py
@@ -434,7 +434,7 @@ else:
['stty', 'size'],
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
out, err = sp.communicate()
- _columns, _lines = map(int, out.split())
+ _lines, _columns = map(int, out.split())
except Exception:
_columns, _lines = _terminal_size(*fallback)