Skip to content
This repository has been archived by the owner on Feb 18, 2019. It is now read-only.

Commit

Permalink
update
Browse files Browse the repository at this point in the history
youtube regex

cleanup

version bump
  • Loading branch information
przemyslawpluta committed Apr 9, 2015
1 parent 9980a47 commit 58e1c1c
Show file tree
Hide file tree
Showing 10 changed files with 24 additions and 22 deletions.
2 changes: 1 addition & 1 deletion lib/configure.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* mongo-edu
*
* Copyright (c) 2014 Przemyslaw Pluta
* Copyright (c) 2014-2015 Przemyslaw Pluta
* Licensed under the MIT license.
* https://github.com/przemyslawpluta/mongo-edu/blob/master/LICENSE
*/
Expand Down
6 changes: 4 additions & 2 deletions lib/courseware.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* mongo-edu
*
* Copyright (c) 2014 Przemyslaw Pluta
* Copyright (c) 2014-2015 Przemyslaw Pluta
* Licensed under the MIT license.
* https://github.com/przemyslawpluta/mongo-edu/blob/master/LICENSE
*/
Expand All @@ -15,7 +15,7 @@ var fs = require('fs'),
_ = require('lodash');

var isWin = /^win/.test(process.platform),
camo = { 'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.116 Safari/537.36' };
camo = { 'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.118 Safari/537.36' };

function saveData(argv, details, data, callback) {

Expand Down Expand Up @@ -49,6 +49,8 @@ function listVideos(url, jar, id, callback) {
pageView = $('div.col-sm-9.course-content section').html(),
getVideoIds = (pageView) ? pageView.match(/(.0:)(.*?)(&)/g) : pageView;

if (getVideoIds && getVideoIds.length > 1) { getVideoIds = [getVideoIds[0]]; }

getVideoIds = (!getVideoIds) ? [] : getVideoIds.map(function map(item) { return { id: id, video: 'https://youtu.be/' + item.replace('.0:','').replace('&','')}; });

callback(null, getVideoIds);
Expand Down
2 changes: 1 addition & 1 deletion lib/initialize.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* mongo-edu
*
* Copyright (c) 2014 Przemyslaw Pluta
* Copyright (c) 2014-2015 Przemyslaw Pluta
* Licensed under the MIT license.
* https://github.com/przemyslawpluta/mongo-edu/blob/master/LICENSE
*/
Expand Down
2 changes: 1 addition & 1 deletion lib/login.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* mongo-edu
*
* Copyright (c) 2014 Przemyslaw Pluta
* Copyright (c) 2014-2015 Przemyslaw Pluta
* Licensed under the MIT license.
* https://github.com/przemyslawpluta/mongo-edu/blob/master/LICENSE
*/
Expand Down
2 changes: 1 addition & 1 deletion lib/options.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* mongo-edu
*
* Copyright (c) 2014 Przemyslaw Pluta
* Copyright (c) 2014-2015 Przemyslaw Pluta
* Licensed under the MIT license.
* https://github.com/przemyslawpluta/mongo-edu/blob/master/LICENSE
*/
Expand Down
2 changes: 1 addition & 1 deletion lib/prompts.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* mongo-edu
*
* Copyright (c) 2014 Przemyslaw Pluta
* Copyright (c) 2014-2015 Przemyslaw Pluta
* Licensed under the MIT license.
* https://github.com/przemyslawpluta/mongo-edu/blob/master/LICENSE
*/
Expand Down
2 changes: 1 addition & 1 deletion lib/validate.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* mongo-edu
*
* Copyright (c) 2014 Przemyslaw Pluta
* Copyright (c) 2014-2015 Przemyslaw Pluta
* Licensed under the MIT license.
* https://github.com/przemyslawpluta/mongo-edu/blob/master/LICENSE
*/
Expand Down
2 changes: 1 addition & 1 deletion lib/videos.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* mongo-edu
*
* Copyright (c) 2014 Przemyslaw Pluta
* Copyright (c) 2014-2015 Przemyslaw Pluta
* Licensed under the MIT license.
* https://github.com/przemyslawpluta/mongo-edu/blob/master/LICENSE
*/
Expand Down
2 changes: 1 addition & 1 deletion mongo-edu.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* mongo-edu
*
* Copyright (c) 2014 Przemyslaw Pluta
* Copyright (c) 2014-2015 Przemyslaw Pluta
* Licensed under the MIT license.
* https://github.com/przemyslawpluta/mongo-edu/blob/master/LICENSE
*/
Expand Down
24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "mongo-edu",
"preferGlobal": true,
"version": "0.2.6",
"version": "0.2.7",
"author": "Przemyslaw Pluta <przemyslawplutadev@gmail.com> (http://przemyslawpluta.com)",
"description": "Select and download videos and handouts from university.mongodb.com courses",
"main": "./mongo-edu",
Expand Down Expand Up @@ -30,24 +30,24 @@
],
"license": "MIT",
"dependencies": {
"cheerio": "~0.18.0",
"cheerio": "~0.19.0",
"colors": "~1.0.3",
"easy-table": "~0.3.0",
"filesize": "~3.1.0",
"glob": "~4.4.0",
"inquirer": "~0.8.0",
"lodash": "~3.3.0",
"filesize": "~3.1.2",
"glob": "~5.0.3",
"inquirer": "~0.8.2",
"lodash": "~3.6.0",
"mkdirp": "~0.5.0",
"mv": "~2.0.3",
"path-extra": "~0.3.0",
"path-extra": "~1.0.2",
"progress": "~1.1.8",
"request": "~2.53.0",
"request": "~2.55.0",
"request-progress": "~0.3.1",
"rimraf": "~2.2.8",
"rimraf": "~2.3.2",
"unzip": "~0.1.11",
"which": "~1.0.8",
"yargs": "~3.2.1",
"youtube-dl": "~1.10.0"
"which": "~1.0.9",
"yargs": "~3.7.0",
"youtube-dl": "~1.10.2"
},
"engines": {
"node": ">= 0.8.x"
Expand Down

0 comments on commit 58e1c1c

Please sign in to comment.