summaryrefslogtreecommitdiff
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
parenta2056d6686bfee3f59adeb43e203f98cb031c84f (diff)
downloadmongo-edu-e263098570530052647a1303946fd3cecc43f26c.zip
update
youtube API updates cleanup version bump
-rw-r--r--lib/videos.js6
-rw-r--r--package.json10
2 files changed, 8 insertions, 8 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'});
diff --git a/package.json b/package.json
index 66c5c00..5d7d7ca 100644
--- a/package.json
+++ b/package.json
@@ -1,7 +1,7 @@
{
"name": "mongo-edu",
"preferGlobal": true,
- "version": "0.2.9",
+ "version": "0.2.10",
"author": "Przemyslaw Pluta <przemyslawplutadev@gmail.com> (http://przemyslawpluta.com)",
"description": "Select and download videos and handouts from university.mongodb.com courses",
"main": "./mongo-edu",
@@ -31,7 +31,7 @@
"license": "MIT",
"dependencies": {
"cheerio": "~0.19.0",
- "colors": "~1.0.3",
+ "colors": "~1.1.0",
"easy-table": "~0.3.0",
"filesize": "~3.1.2",
"glob": "~5.0.5",
@@ -43,11 +43,11 @@
"progress": "~1.1.8",
"request": "~2.55.0",
"request-progress": "~0.3.1",
- "rimraf": "~2.3.2",
+ "rimraf": "~2.3.3",
"unzip": "~0.1.11",
"which": "~1.0.9",
- "yargs": "~3.7.2",
- "youtube-dl": "~1.10.2"
+ "yargs": "~3.8.0",
+ "youtube-dl": "~1.10.3"
},
"engines": {
"node": ">= 0.8.x"