From 1d222eacc36516039b67bcca330e1efc94a81e9a Mon Sep 17 00:00:00 2001 From: Johan Andersson Date: Wed, 27 Aug 2014 19:29:00 +0200 Subject: [PATCH] progressbar: make it bit smaller. this should fix #122 --- lib/svtplay_dl/output.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/svtplay_dl/output.py b/lib/svtplay_dl/output.py index 23f5a29..c582609 100644 --- a/lib/svtplay_dl/output.py +++ b/lib/svtplay_dl/output.py @@ -101,7 +101,7 @@ def progressbar(total, pos, msg=""): Of course, the ETA part should be supplied be the calling function. """ - width = get_terminal_size()[0] - 25 + width = get_terminal_size()[0] - 35 rel_pos = int(float(pos)/total*width) bar = ''.join(["=" * rel_pos, "." * (width - rel_pos)])