From a8c5dd777ad3406e890802afad0fe8981d25bc48 Mon Sep 17 00:00:00 2001 From: przemyslawpluta Date: Sun, 3 Aug 2014 16:15:09 +0100 Subject: cleanup --- lib/videos.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib') 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); }); }; -- cgit v1.2.3