From c3abb93e998c4af0126eb44c8f0e1c356caa6553 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damjan=20Ko=C5=A1ir?= Date: Tue, 26 May 2015 19:53:04 +1200 Subject: [PATCH] fixing ChainsawSuit --- dosagelib/plugins/c.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/dosagelib/plugins/c.py b/dosagelib/plugins/c.py index c3bfe43b1..5114bdacd 100755 --- a/dosagelib/plugins/c.py +++ b/dosagelib/plugins/c.py @@ -109,14 +109,13 @@ class CatsAndCameras(_BasicScraper): help = 'Index format: stripname' -class ChainsawSuit(_BasicScraper): +class ChainsawSuit(_ParserScraper): url = 'http://chainsawsuit.com/' rurl = escape(url) stripUrl = url + '%s/' firstStripUrl = stripUrl % '2008/03/12/strip-338' - imageSearch = compile(tagre("img", "src", r'(%swp-content/uploads/\d+/\d+/[^"]+)' % rurl)) - prevSearch = compile(tagre("a", "href", r'(%scomic/\d+/\d+/\d+/[^"]+)' % rurl) + - tagre("img", "alt", r'previous')) + imageSearch = '//div[@id="comic"]//img' + prevSearch = '//img[@alt="previous"]/..' help = 'Index format: yyyy/mm/dd/stripname'