summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
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;