summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorprzemyslawpluta <przemekpluta@hotmail.com>2015-02-22 14:34:20 +0000
committerprzemyslawpluta <przemekpluta@hotmail.com>2015-02-22 14:34:20 +0000
commit9980a4702dfd86d515ab326147b5c19a31db8663 (patch)
treef81855102f1319ac53717c12e44769524576c9db /lib
parentca4becfe0cb41d3d3e38293d1af5dcd7518c8314 (diff)
downloadmongo-edu-9980a4702dfd86d515ab326147b5c19a31db8663.zip
version bump
Diffstat (limited to 'lib')
-rw-r--r--lib/videos.js12
1 files changed, 6 insertions, 6 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;