summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorprzemyslawpluta <przemekpluta@hotmail.com>2014-09-30 22:36:36 +0100
committerprzemyslawpluta <przemekpluta@hotmail.com>2014-09-30 22:36:36 +0100
commit216dc3cf376d0d352d97b88abf28d14a4adbc177 (patch)
treef85c75db32c77c10d43926a95909d06a9cd7be81 /lib
parentf2d0a37914e124723d65b38158b05c2157a56518 (diff)
downloadmongo-edu-216dc3cf376d0d352d97b88abf28d14a4adbc177.zip
new website support
Diffstat (limited to 'lib')
-rw-r--r--lib/login.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/login.js b/lib/login.js
index 9194dba..5b13007 100644
--- a/lib/login.js
+++ b/lib/login.js
@@ -70,9 +70,9 @@ module.exports = {
var list = [], $ = cheerio.load(body),
- current = $('article.my-course.panel').children(),
+ current = $('section.my-courses-courses').children(),
- link = $(current).children().filter('.span-7.offset-1').children().find('h3').children();
+ link = $(current).filter('.media').children().find('h3').children();
bar.tick();
@@ -139,7 +139,7 @@ module.exports = {
} else {
- $('div.syllabus tbody tr').map(function map(i, item) {
+ $('tbody tr').map(function map(i, item) {
var current = $(item), text = current.children().first().text(), href = $(current.find('a')).attr('href');
if (href) {
list.push({ name: text, value: host + $(current.find('a')).attr('href') });