From a08ad2dc805202d465c2b1e198ea7292b55cdfcc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damjan=20Ko=C5=A1ir?= Date: Mon, 1 Jun 2015 15:11:16 +1200 Subject: [PATCH] fixed GoGetARoomie --- dosagelib/plugins/g.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/dosagelib/plugins/g.py b/dosagelib/plugins/g.py index b9dfe3869..32c5b701d 100644 --- a/dosagelib/plugins/g.py +++ b/dosagelib/plugins/g.py @@ -4,7 +4,7 @@ from re import compile, escape -from ..scraper import _BasicScraper +from ..scraper import _BasicScraper, _ParserScraper from ..helpers import indirectStarter from ..util import tagre @@ -131,12 +131,10 @@ class GoblinsComic(_BasicScraper): help = 'Index format: ddmmyyyy' -class GoGetARoomie(_BasicScraper): +class GoGetARoomie(_ParserScraper): url = 'http://www.gogetaroomie.com/index.php' - stripUrl = url + '?id=%s' - firstStripUrl = stripUrl % '1' - imageSearch = compile(tagre('img', 'src', r'(comics/[^"]+)')) - prevSearch = compile(tagre('a', 'href', r'([^"]+)', after='rel="prev"')) + imageSearch = '//div[@id="cc-comicbody"]//img' + prevSearch = '//a[@rel="prev"]' help = 'Index format: nnn'