diff --git a/dosagelib/plugins/w.py b/dosagelib/plugins/w.py index 94c8e3008..0af93415b 100644 --- a/dosagelib/plugins/w.py +++ b/dosagelib/plugins/w.py @@ -5,7 +5,7 @@ # Copyright (C) 2019-2020 Daniel Ring from re import compile, escape, IGNORECASE -from ..scraper import _BasicScraper, _ParserScraper +from ..scraper import ParserScraper, _BasicScraper, _ParserScraper from ..util import tagre from ..helpers import bounceStarter from .common import ComicControlScraper, WordPressScraper, WordPressNaviIn, WordPressWebcomic @@ -36,13 +36,12 @@ class WebcomicName(_ParserScraper): multipleImagesPerStrip = True -class Weregeek(_ParserScraper): +class Weregeek(ParserScraper): url = 'http://www.weregeek.com/' - stripUrl = url + '%s/' - firstStripUrl = stripUrl % '2006/11/27' - imageSearch = '//div[@id="comic"]/img' - prevSearch = '//a[./img[@alt="Previous"]]' - help = 'Index format: yyyy/mm/dd' + stripUrl = url + 'comic/%s/' + firstStripUrl = stripUrl % 'comic-1' + imageSearch = '//div[d:class("webcomic-media")]//img' + prevSearch = '//a[d:class("previous-webcomic-link")]' class WereIWolf(_ParserScraper):