summaryrefslogtreecommitdiff
path: root/lib/videos.js
diff options
context:
space:
mode:
authorprzemyslawpluta <przemekpluta@hotmail.com>2015-04-30 21:34:24 +0100
committerprzemyslawpluta <przemekpluta@hotmail.com>2015-04-30 21:34:24 +0100
commite263098570530052647a1303946fd3cecc43f26c (patch)
treea346c19f316718488bad8e15df83142e30ad6f7e /lib/videos.js
parenta2056d6686bfee3f59adeb43e203f98cb031c84f (diff)
downloadmongo-edu-e263098570530052647a1303946fd3cecc43f26c.zip
update
youtube API updates cleanup version bump
Diffstat (limited to 'lib/videos.js')
-rw-r--r--lib/videos.js6
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'});