diff options
-rw-r--r-- | lib/videos.js | 4 | ||||
-rw-r--r-- | package.json | 6 |
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": { |