From 529a41397a5f5ce8413a14aa78451ae2133e05c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damjan=20Ko=C5=A1ir?= Date: Tue, 26 May 2015 21:32:25 +1200 Subject: [PATCH] fixing CorydonCafe --- dosagelib/plugins/c.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/dosagelib/plugins/c.py b/dosagelib/plugins/c.py index 5114bdacd..82ee3e325 100755 --- a/dosagelib/plugins/c.py +++ b/dosagelib/plugins/c.py @@ -243,13 +243,12 @@ class CoolCatStudio(_BasicScraper): help = 'Index format: ccsyyyymmdd' -class CorydonCafe(_BasicScraper): +class CorydonCafe(_ParserScraper): url = 'http://corydoncafe.com/' - starter = indirectStarter(url, - compile(tagre("a", "href", r'(\./\d+/[^"]+)'))) + starter = indirectStarter(url, '//ul//a') stripUrl = url + '%s.php' - imageSearch = compile(tagre("img", "src", r"(\./[^']+)", quote="'")) - prevSearch = compile(tagre("a", "href", r"(http://corydoncafe\.com/\d+/[^']+)", after="prev", quote="'")) + imageSearch = "//center[2]//img" + prevSearch = '//a[@title="prev"]' help = 'Index format: yyyy/stripname' @classmethod