summaryrefslogtreecommitdiffhomepage
path: root/youtube_dl
diff options
context:
space:
mode:
authorSergey M․ <[email protected]>2015-10-06 22:02:28 +0600
committerSergey M․ <[email protected]>2015-10-06 22:02:28 +0600
commitf2dbc54066f56a98c689099b920e6a596d4ffdfc (patch)
tree24f1bb6e821cc3beb8afa73fa83cba1be3e21229 /youtube_dl
parent86be82610c35a684bee97b22c8d9a2a83bab1bba (diff)
downloadyoutube-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.py2
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)