From a9421c458f2ecc908dbeefce359876eb54d78cae Mon Sep 17 00:00:00 2001 From: Techwolf Date: Sat, 19 Feb 2022 01:51:15 -0800 Subject: [PATCH] Fix Guardia --- dosagelib/plugins/comicfury.py | 1 + dosagelib/plugins/g.py | 13 ------------- dosagelib/plugins/old.py | 1 + 3 files changed, 2 insertions(+), 13 deletions(-) diff --git a/dosagelib/plugins/comicfury.py b/dosagelib/plugins/comicfury.py index 212dd9663..17e85792b 100644 --- a/dosagelib/plugins/comicfury.py +++ b/dosagelib/plugins/comicfury.py @@ -464,6 +464,7 @@ class ComicFury(_ParserScraper): cls('GrippsBrain', 'grippsbrain'), cls('GrokBoop', 'grokboop'), cls('GrowingTroubles', 'growingtroubles'), + cls('Guardia', 'guardia-tales-of-halgeis'), cls('GUS', 'gus'), cls('HalloweenCameoCaper2012', 'halloween2012'), cls('HalloweenCameoCaper2013', 'halloween2013'), diff --git a/dosagelib/plugins/g.py b/dosagelib/plugins/g.py index da53e9615..d4b72acf3 100644 --- a/dosagelib/plugins/g.py +++ b/dosagelib/plugins/g.py @@ -145,19 +145,6 @@ class GrrlPower(_WordPressScraper): self.session.add_throttle('grrlpowercomic.com', 1.0, 1.5) -class Guardia(_ParserScraper): - url = 'https://ssp-comics.com/comics/Guardia/' - stripUrl = url + '?page=%s' - firstStripUrl = stripUrl % '1' - imageSearch = '//img[contains(@src, "comics/Guardia/")]' - prevSearch = '//a[./button[@id="prevButton"]]' - nextSearch = '//a[./button[@id="nextButton"]]' - starter = bounceStarter - - def namer(self, imageUrl, pageUrl): - return pageUrl.rsplit('=', 1)[-1] + '.' + imageUrl.rsplit('.', 1)[-1] - - class GuildedAge(_WordPressScraper): url = 'http://guildedage.net/' firstStripUrl = url + 'comic/chapter-1-cover/' diff --git a/dosagelib/plugins/old.py b/dosagelib/plugins/old.py index e213f766d..9bf28c03e 100644 --- a/dosagelib/plugins/old.py +++ b/dosagelib/plugins/old.py @@ -1619,6 +1619,7 @@ class Renamed(Scraper): cls('GoComics/PeanutsEnEspanol', 'GoComics/SnoopyEnEspanol'), cls('GoComics/RipleysBelieveItOrNotSpanish', 'GoComics/RipleysAunqueUstedNoLoCrea'), cls('GoComics/WebcomicName', 'WebcomicName'), + cls('Guardia', 'ComicFury/Guardia'), cls('Shivae/BlackRose', 'BlackRose'), cls('SmackJeeves/BlackTapestries', 'ComicFury/BlackTapestries'), cls('SmackJeeves/ByTheBook', 'ByTheBook'),