From 73ac10dc849775bc1f1be7bbc30cd87a0ab0edfd Mon Sep 17 00:00:00 2001 From: Techwolf Date: Sat, 30 Jan 2021 01:58:16 -0800 Subject: [PATCH] Fix LazJonesAndTheMayfieldRegulators --- dosagelib/plugins/l.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/dosagelib/plugins/l.py b/dosagelib/plugins/l.py index 2dc0579b0..75f4558cd 100644 --- a/dosagelib/plugins/l.py +++ b/dosagelib/plugins/l.py @@ -46,10 +46,16 @@ class LazJonesAndTheMayfieldRegulators(_ParserScraper): class LazJonesAndTheMayfieldRegulatorsSideStories(LazJonesAndTheMayfieldRegulators): name = 'LazJonesAndTheMayfieldRegulators/SideStories' baseUrl = 'https://www.lazjones.com/' - url = baseUrl + 'sidestories' + url = baseUrl + 'comics' stripUrl = baseUrl + 'comic/%s' firstStripUrl = stripUrl % 'journal01' + def getPrevUrl(self, url, data): + # Fix broken navigation links + if url == self.url and data.xpath(self.prevSearch + '/@href')[0] == self.stripUrl % 'summer00': + return self.stripUrl % 'summer21' + return super(LazJonesAndTheMayfieldRegulators, self).getPrevUrl(url, data) + class LeastICouldDo(_ParserScraper): url = 'https://leasticoulddo.com/'