diff options
author | Sergey M․ <[email protected]> | 2015-10-06 22:02:28 +0600 |
---|---|---|
committer | Sergey M․ <[email protected]> | 2015-10-06 22:02:28 +0600 |
commit | f2dbc54066f56a98c689099b920e6a596d4ffdfc (patch) | |
tree | 24f1bb6e821cc3beb8afa73fa83cba1be3e21229 /youtube_dl | |
parent | 86be82610c35a684bee97b22c8d9a2a83bab1bba (diff) | |
download | youtube-dl-f2dbc54066f56a98c689099b920e6a596d4ffdfc.tar.gz youtube-dl-f2dbc54066f56a98c689099b920e6a596d4ffdfc.zip |
[compat] Fix wrong lines/columns order
stty size is rows x columns
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/compat.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/compat.py b/youtube_dl/compat.py index 1ba4ab78c..192e1c515 100644 --- 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) |