1.0.3: Fix for incorrect title if multiple seasons

This commit is contained in:
Roel van Uden
2015-01-25 19:02:56 +01:00
parent d3559bab07
commit 1e54078e39
2 changed files with 2 additions and 2 deletions

View File

@@ -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"
},

View File

@@ -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) {