diff options
author | przemyslawpluta <przemekpluta@hotmail.com> | 2014-09-30 22:36:36 +0100 |
---|---|---|
committer | przemyslawpluta <przemekpluta@hotmail.com> | 2014-09-30 22:36:36 +0100 |
commit | 216dc3cf376d0d352d97b88abf28d14a4adbc177 (patch) | |
tree | f85c75db32c77c10d43926a95909d06a9cd7be81 | |
parent | f2d0a37914e124723d65b38158b05c2157a56518 (diff) | |
download | mongo-edu-216dc3cf376d0d352d97b88abf28d14a4adbc177.zip |
new website support
-rw-r--r-- | lib/login.js | 6 |
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') }); |