diff options
author | przemyslawpluta <przemekpluta@hotmail.com> | 2015-09-08 20:27:01 +0100 |
---|---|---|
committer | przemyslawpluta <przemekpluta@hotmail.com> | 2015-09-08 20:27:01 +0100 |
commit | 212e5e9dbfcecdb7bcb8d9821d9ab50d1a0d8d09 (patch) | |
tree | ac03cfb787dc2d317557aa1fcfca8ed2dd159a40 | |
parent | ebf010cee4a45d14b8890b73d5ab0e06f99c718c (diff) | |
download | mongo-edu-212e5e9dbfcecdb7bcb8d9821d9ab50d1a0d8d09.zip |
fix video preference change
cleanup
version bump
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | lib/initialize.js | 4 | ||||
-rw-r--r-- | lib/options.js | 2 | ||||
-rw-r--r-- | package.json | 10 |
4 files changed, 9 insertions, 9 deletions
@@ -38,7 +38,7 @@ Options: Videos: --cw switch from wiki video lists (default) to courseware --cwd same as --cw and dumps list of videos to file in -d - --co sequence video files in order of the courseware + --co arrange video files in correct order of the courseware --cc get closed captions --hq get high quality videos diff --git a/lib/initialize.js b/lib/initialize.js index a134ed9..619210b 100644 --- a/lib/initialize.js +++ b/lib/initialize.js @@ -44,12 +44,12 @@ module.exports = function run(profile, argv) { confirm[0].message = 'Your current video preference is set to ' + profile.preset.video[1].underline + '. Switch to: ' + videoPreference.green; - profileAssesment(confirm, data); + profileAssesment(confirm, data, profile); }); } - function profileAssesment(confirm, data) { + function profileAssesment(confirm, data, profile) { inquirer.prompt(confirm, function prompt(answers) { if (!answers.confirm) { return console.log('i'.red + ' ' + pkg.name + ' requires video preferences set to ' + videoPreference + '.\n'); } diff --git a/lib/options.js b/lib/options.js index 9cfd300..273d7d9 100644 --- a/lib/options.js +++ b/lib/options.js @@ -29,7 +29,7 @@ var fs = require('fs'), .describe('hq', 'get high quality videos').boolean('hq') .describe('ncc', 'no check certificate').boolean('ncc') .describe('uz', 'unzip handout files').boolean('uz') - .describe('co', 'sequence video files in order of the courseware').boolean('co') + .describe('co', 'arrange video files in correct order of the courseware').boolean('co') .describe('verbose', 'print debug information').boolean('verbose') .example('mongo-edu -d your_download_path', 'download videos from wiki') .example('mongo-edu -d your_download_path -u your_user_name --cw --hq --cc', 'download high quality videos from courseware with closed captions') diff --git a/package.json b/package.json index 1a1786b..8b3d2a4 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "mongo-edu", "preferGlobal": true, - "version": "0.2.19", + "version": "0.2.20", "author": "Przemyslaw Pluta <przemyslawplutadev@gmail.com> (http://przemyslawpluta.com)", "description": "Select and download videos and handouts from university.mongodb.com courses", "main": "./mongo-edu", @@ -40,14 +40,14 @@ "mkdirp": "~0.5.1", "mv": "~2.1.1", "path-extra": "~1.0.3", - "pretty-error": "^1.1.2", + "pretty-error": "^1.2.0", "progress": "~1.1.8", - "request": "~2.60.0", + "request": "~2.61.0", "request-progress": "~0.3.1", - "rimraf": "~2.4.2", + "rimraf": "~2.4.3", "unzip": "~0.1.11", "which": "~1.1.1", - "yargs": "~3.19.0", + "yargs": "~3.24.0", "youtube-dl": "~1.10.5" }, "engines": { |