1.0.3: Fix for incorrect title if multiple seasons
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
],
|
||||
"name": "crunchyroll",
|
||||
"repository": "git://github.com/Deathspike/crunchyroll.js.git",
|
||||
"version": "1.0.2",
|
||||
"version": "1.0.3",
|
||||
"bin": {
|
||||
"crunchyroll": "./bin/crunchyroll"
|
||||
},
|
||||
|
||||
@@ -71,7 +71,7 @@ function _page(config, address, done) {
|
||||
request.get(config, address, function(err, res, body) {
|
||||
if (err) return done(err);
|
||||
var $ = cheerio.load(body);
|
||||
var title = $('.season-dropdown').text() || $('span[itemprop=name]').text();
|
||||
var title = $('span[itemprop=name]').text();
|
||||
if (!title) return done(new Error('Invalid page.'));
|
||||
var episodes = [];
|
||||
$('.episode').each(function(i, el) {
|
||||
|
||||
Reference in New Issue
Block a user