From ec6e59e53c01ee0856de3788c3b01cb4ac5e6c5e Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Fri, 22 Feb 2013 20:29:05 +0100 Subject: [PATCH] Fix Chucklebrain --- dosagelib/plugins/c.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/dosagelib/plugins/c.py b/dosagelib/plugins/c.py index 39d072a86..41a38024c 100644 --- a/dosagelib/plugins/c.py +++ b/dosagelib/plugins/c.py @@ -5,7 +5,7 @@ from re import compile from ..scraper import _BasicScraper -from ..helpers import bounceStarter +from ..helpers import bounceStarter, indirectStarter from ..util import tagre @@ -278,9 +278,13 @@ class Champ2010(_BasicScraper): class Chucklebrain(_BasicScraper): url = 'http://www.chucklebrain.com/main.php' + starter = indirectStarter(url, + compile(tagre("a", "href", r'(/main\.php\?img\=\d+)', quote="'") + + tagre("img", "src", r'/images/last\.jpg', quote="'"))) stripUrl = url + '?img=%s' imageSearch = compile(tagre("img", "src", r'(/images/strip[^"]+)')) - prevSearch = compile(r'