diff options
author | przemyslawpluta <przemekpluta@hotmail.com> | 2014-08-03 16:15:09 +0100 |
---|---|---|
committer | przemyslawpluta <przemekpluta@hotmail.com> | 2014-08-03 16:15:09 +0100 |
commit | a8c5dd777ad3406e890802afad0fe8981d25bc48 (patch) | |
tree | dfc4684fb1a8f138683a069ddefcc9b368ca1e8b | |
parent | 398813b44be2bea22b39fe273c8702a9fc5dd205 (diff) | |
download | mongo-edu-a8c5dd777ad3406e890802afad0fe8981d25bc48.zip |
cleanup
-rw-r--r-- | lib/videos.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/videos.js b/lib/videos.js index ac43e30..0980e36 100644 --- a/lib/videos.js +++ b/lib/videos.js @@ -150,7 +150,7 @@ var handleList = function handleList(list, tags) { if (co) { downloadList.push({id: item, name: path.basename(info.filename)}); } console.log('[' + 'i'.magenta + '] Downloading: ' + info.filename.cyan + ' > ' + item); bar = new ProgressBar('[' + '>'.green + '] ' + filesize(size) + ' [:bar] :percent :etas', { complete: '=', incomplete: ' ', width: 20, total: 100.0 }); - console.time('[' + 'i'.magenta + '] Done in'); + console.time('[' + 'i'.magenta + '] ' + info.filename + '. Done in'); dl.pipe(fs.createWriteStream(downloadPath + info.filename)); }); @@ -169,9 +169,9 @@ var handleList = function handleList(list, tags) { }); dl.on('end', function end() { - var left = (currentList.length)? ' ' + currentList.length + ' left ...' : ''; - console.log('[' + '>'.magenta + '] ' + stash.filename + '.' + left); - console.timeEnd('[' + 'i'.magenta + '] Done in'); + var left = (currentList.length)? currentList.length + ' left ...' : ''; + console.timeEnd('[' + 'i'.magenta + '] ' + stash.filename + '. Done in'); + if (left) { console.log('[' + 'i'.magenta + '] ' + left); } handleList(currentList, tags); }); }; |