summaryrefslogtreecommitdiff
path: root/lib/videos.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/videos.js')
-rw-r--r--lib/videos.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/videos.js b/lib/videos.js
index 1ba0ce7..33df751 100644
--- a/lib/videos.js
+++ b/lib/videos.js
@@ -80,7 +80,7 @@ var handleList = function handleList(list, tags) {
console.log('i'.magenta + ' Downloading: ' + name.cyan);
dlh.on('progress', function(state) {
- if (!bar) { bar = new ProgressBar('>'.green + ' ' + filesize(state.total) + ' [:bar] :percent :etas', { complete: '=', incomplete: ' ', width: 20, total: 100 }); }
+ if (!bar) { bar = new ProgressBar('>'.green + ' ' + filesize(state.size.total) + ' [:bar] :percent :etas', { complete: '=', incomplete: ' ', width: 20, total: 100 }); }
if (!bar.complete && progressSoFar !== state.percent) {
var i;
for (i = 0; i < (state.percent - hold); i++) { bar.tick(); }