From c2c13554269d2f26cfe1af6eb40dfa9d99042d7e Mon Sep 17 00:00:00 2001 From: Tobias Gruetzmacher Date: Mon, 6 Jun 2022 15:33:25 +0200 Subject: [PATCH] Fix TheGamerCat --- dosagelib/plugins/t.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/dosagelib/plugins/t.py b/dosagelib/plugins/t.py index b20933e72..6051016bc 100644 --- a/dosagelib/plugins/t.py +++ b/dosagelib/plugins/t.py @@ -12,7 +12,8 @@ except ImportError: from ..scraper import _BasicScraper, _ParserScraper from ..helpers import indirectStarter from ..util import tagre -from .common import ComicControlScraper, WordPressScraper, WordPressNavi, WordPressWebcomic +from .common import (ComicControlScraper, WordPressScraper, WordPressSpliced, + WordPressNavi, WordPressWebcomic) class TailsAndTactics(_ParserScraper): @@ -117,13 +118,9 @@ class TheForgottenOrder(ComicControlScraper): firstStripUrl = url + 'comic/prolouge-01-book-1' -class TheGamerCat(_ParserScraper): +class TheGamerCat(WordPressSpliced): url = 'https://thegamercat.com/' - stripUrl = url + 'comic/%s/' - firstStripUrl = stripUrl % '06102011' - imageSearch = '//div[@id="comic"]//img' - prevSearch = '//a[contains(@class, "comic-nav-previous")]' - help = 'Index format: stripname' + firstStripUrl = url + 'comic/06102011/' class TheGentlemansArmchair(WordPressScraper):