diff options
Diffstat (limited to 'lib/videos.js')
-rw-r--r-- | lib/videos.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/videos.js b/lib/videos.js index d389479..caf97d3 100644 --- a/lib/videos.js +++ b/lib/videos.js @@ -61,7 +61,7 @@ var handleList = function handleList(list, tags) { var currentList = list, quality = (!hq) ? '18' : '22', - opt = (!ncc) ? ['--max-quality=' + quality] : ['--max-quality=' + quality, '--no-check-certificate'], i, count; + opt = (!ncc) ? ['--format=' + quality] : ['--format=' + quality, '--no-check-certificate'], i, count; if (verbose) { opt = opt.concat(['--verbose']); } @@ -252,7 +252,7 @@ module.exports = { if (verbose && isDebug.test(err)) { console.log(err); } - items.push((!err)?{name: info.title + ' - ' + info.format, value: item, id: i}:{name: 'No info: ' + item, value: item, id: i}); + items.push((!err)?{name: info.fulltitle + ' - ' + info.width + 'x' + info.height, value: item, id: i}:{name: 'No info: ' + item, value: item, id: i}); count = count - 1; @@ -325,7 +325,7 @@ module.exports = { if (info.length) { for (i = 0; i < info.length; i++) { item = 'https://www.youtube.com/watch?v=' + info[i].id; - items.push((!err)?{name: info[i].title + ' - ' + info[i].resolution, value: item, id: i}:{name: 'No info: ' + item, value: item, id: i}); + items.push((!err)?{name: info.fulltitle + ' - ' + info.width + 'x' + info.height, value: item, id: i}:{name: 'No info: ' + item, value: item, id: i}); } items.unshift({name: 'All', value: 'all', checked: true}, {name: 'Cancel', value: 'cancel'}); |