From 48d8519efdbd94253c2c7ab66d770ac91e7d8922 Mon Sep 17 00:00:00 2001 From: Helge Stasch Date: Mon, 28 Sep 2015 23:50:15 +0200 Subject: [PATCH] Changed Goblins comic - moved to new scraper and fixed minor issues with some comics (old scrapper was unstable for some comics of Goblins) --- dosagelib/plugins/g.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dosagelib/plugins/g.py b/dosagelib/plugins/g.py index cc7213ebf..7e622181a 100644 --- a/dosagelib/plugins/g.py +++ b/dosagelib/plugins/g.py @@ -121,13 +121,13 @@ class GleefulNihilism(_BasicScraper): help = 'Index format: stripname' -class GoblinsComic(_BasicScraper): +class GoblinsComic(_ParserScraper): url = 'http://www.goblinscomic.org/' rurl = escape(url) stripUrl = url + '%s/' - firstStripUrl = stripUrl % '06252005' - prevSearch = compile(tagre("a", "href", r'(%s[-\d]+/)' % rurl, after="prev")) - imageSearch = compile(tagre("img", "src", r'(%scomics/\d+\.[^"]+)' % rurl)) + css = True + imageSearch = '#comic img' + prevSearch = '.nav-previous > a' help = 'Index format: ddmmyyyy'