Skip to content

Commit

Permalink
fix cheezburger network plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
makefu committed Jan 13, 2014
1 parent 5d7a138 commit 9b0b819
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/cheezburger_network.js
Expand Up @@ -67,7 +67,7 @@ function genPlugin(log,url) {
if (err) {
log.warn("Error: " + err);
} else {
ret = Select(dom, 'div[class=entry] img[title]');
ret = Select(dom, 'img[class=event-item-lol-image]');
try {
ret.forEach(function (image){
images.push(Url.resolve(content.url,image.attribs['src']));
Expand All @@ -94,7 +94,7 @@ function genPlugin(log,url) {
ret = Select(dom, 'a[href]');
ret.forEach(function (link){
//log.warn(Sys.inspect(link))
if ( link.children && pattern.test(link.children[0].data) ) {
if ( link.children && link.children.length == 2 && pattern.test(link.children[1].data) ) {
nextUrl = Url.resolve(content.url,link.attribs['href']);
}
});
Expand Down

0 comments on commit 9b0b819

Please sign in to comment.