From 9980a4702dfd86d515ab326147b5c19a31db8663 Mon Sep 17 00:00:00 2001 From: przemyslawpluta Date: Sun, 22 Feb 2015 14:34:20 +0000 Subject: version bump --- lib/videos.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'lib') diff --git a/lib/videos.js b/lib/videos.js index 70d3939..57764fe 100644 --- a/lib/videos.js +++ b/lib/videos.js @@ -172,11 +172,11 @@ var handleList = function handleList(list, tags) { dl.on('info', function(info) { size = info.size; stash = info; - if (co) { downloadList.push({id: item, name: path.basename(info.filename)}); } - console.log('i'.magenta + ' Downloading: ' + info.filename.cyan + ' > ' + item); + 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: parseInt(size, 10) }); - console.time('i'.magenta + ' ' + info.filename + '. Done in'); - dl.pipe(fs.createWriteStream(downloadPath + info.filename)); + console.time('i'.magenta + ' ' + info._filename + '. Done in'); + dl.pipe(fs.createWriteStream(downloadPath + info._filename)); }); dl.on('data', function(data) { @@ -189,7 +189,7 @@ var handleList = function handleList(list, tags) { dl.on('end', function end() { var left = (currentList.length)? currentList.length + ' left ...' : ''; - console.timeEnd('i'.magenta + ' ' + stash.filename + '. Done in'); + console.timeEnd('i'.magenta + ' ' + stash._filename + '. Done in'); getSubtitles(item, left, currentList, tags); }); }; @@ -252,7 +252,7 @@ module.exports = { if (verbose && isDebug.test(err)) { console.log(err); } - items.push((!err)?{name: info.title + ' - ' + info.resolution, value: item, id: i}:{name: 'No info: ' + item, value: item, id: i}); + items.push((!err)?{name: info.title + ' - ' + info.format, value: item, id: i}:{name: 'No info: ' + item, value: item, id: i}); count = count - 1; -- cgit v1.2.3