summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorprzemyslawpluta <przemekpluta@hotmail.com>2015-10-24 10:20:41 +0100
committerprzemyslawpluta <przemekpluta@hotmail.com>2015-10-24 10:20:41 +0100
commit2b91d6514753a372d22d8f4050f020c26ef94684 (patch)
treef3f6e438024a410ccfa2727e1bf39431da6d9ec1
parent6496336a13d7a484ffac2bfb14f5c88a93a73bac (diff)
downloadmongo-edu-2b91d6514753a372d22d8f4050f020c26ef94684.zip
emit end on close
version bump
-rw-r--r--lib/videos.js4
-rw-r--r--package.json6
2 files changed, 7 insertions, 3 deletions
diff --git a/lib/videos.js b/lib/videos.js
index dbdf862..924abd9 100644
--- a/lib/videos.js
+++ b/lib/videos.js
@@ -193,6 +193,10 @@ var handleList = function handleList(list, tags) {
console.log(err.stack);
});
+ dl.on('close', function close() {
+ dl.emit('end');
+ });
+
dl.on('end', function end() {
var left = (currentList.length)? currentList.length + ' left ...' : '';
console.timeEnd('i'.magenta + ' ' + stash._filename + '. Done in');
diff --git a/package.json b/package.json
index da813be..4f9f2d9 100644
--- a/package.json
+++ b/package.json
@@ -1,7 +1,7 @@
{
"name": "mongo-edu",
"preferGlobal": true,
- "version": "0.2.21",
+ "version": "0.2.22",
"author": "Przemyslaw Pluta <przemyslawplutadev@gmail.com> (http://przemyslawpluta.com)",
"description": "Select and download videos and handouts from university.mongodb.com courses",
"main": "./mongo-edu",
@@ -35,7 +35,7 @@
"easy-table": "~1.0.0",
"filesize": "~3.1.3",
"glob": "~5.0.15",
- "inquirer": "~0.10.1",
+ "inquirer": "~0.11.0",
"lodash": "~3.10.1",
"mkdirp": "~0.5.1",
"mv": "~2.1.1",
@@ -47,7 +47,7 @@
"rimraf": "~2.4.3",
"unzip": "~0.1.11",
"which": "~1.2.0",
- "yargs": "~3.27.0",
+ "yargs": "~3.29.0",
"youtube-dl": "~1.10.5"
},
"engines": {