From f158f5af7c6f44c888e253b226737df382fa20e3 Mon Sep 17 00:00:00 2001 From: Techwolf Date: Tue, 6 Jun 2023 21:03:36 -0700 Subject: [PATCH] Fix Weregeek --- dosagelib/plugins/w.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) 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):