From 236b840363fb3fc59c79bb714bb71cd128ec8030 Mon Sep 17 00:00:00 2001 From: Keith Beckman Date: Fri, 13 Jun 2014 16:43:40 -0400 Subject: [PATCH] Updated GirlGenius to new markup GG markup has changed, so I fixed the prevSearch regex to find the "previous" button on the redesigned page. As well, I set multipleImagesPerStrip to true, since there are quite a few comics with multiple images that were being discarded. --- dosagelib/plugins/g.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dosagelib/plugins/g.py b/dosagelib/plugins/g.py index c839d4d6e..2963f206f 100644 --- a/dosagelib/plugins/g.py +++ b/dosagelib/plugins/g.py @@ -111,11 +111,11 @@ class GirlGenius(_BasicScraper): stripUrl = url + '?date=%s' firstStripUrl = stripUrl % '20021104' imageSearch = compile(tagre("img", "src", r"(%sggmain/strips/[^']*)" % rurl, quote="'")) - prevSearch = compile(tagre("a", "href", r"(%s[^']+)" % rurl, quote="'") + - tagre("img", "alt", "The Previous Comic", quote="'")) + prevSearch = compile(tagre("a", "id", "topprev", quote="\"", + before=r"(%s[^\"']+)" % rurl)) + multipleImagesPerStrip = True help = 'Index format: yyyymmdd' - class GirlsWithSlingshots(_BasicScraper): url = 'http://www.girlswithslingshots.com/' rurl = escape(url)