diff options
-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); }); }; |