diff options
author | przemyslawpluta <przemekpluta@hotmail.com> | 2015-02-22 14:34:20 +0000 |
---|---|---|
committer | przemyslawpluta <przemekpluta@hotmail.com> | 2015-02-22 14:34:20 +0000 |
commit | 9980a4702dfd86d515ab326147b5c19a31db8663 (patch) | |
tree | f81855102f1319ac53717c12e44769524576c9db | |
parent | ca4becfe0cb41d3d3e38293d1af5dcd7518c8314 (diff) | |
download | mongo-edu-9980a4702dfd86d515ab326147b5c19a31db8663.zip |
version bump
-rw-r--r-- | lib/videos.js | 12 | ||||
-rw-r--r-- | package.json | 2 |
2 files changed, 7 insertions, 7 deletions
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; diff --git a/package.json b/package.json index 0589b3d..18ba888 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "mongo-edu", "preferGlobal": true, - "version": "0.2.5", + "version": "0.2.6", "author": "Przemyslaw Pluta <przemyslawplutadev@gmail.com> (http://przemyslawpluta.com)", "description": "Select and download videos and handouts from university.mongodb.com courses", "main": "./mongo-edu", |