Fix LazJonesAndTheMayfieldRegulators

This commit is contained in:
Techwolf 2021-01-30 01:58:16 -08:00 committed by Tobias Gruetzmacher
parent c532f80bcd
commit 73ac10dc84

View file

@ -46,10 +46,16 @@ class LazJonesAndTheMayfieldRegulators(_ParserScraper):
class LazJonesAndTheMayfieldRegulatorsSideStories(LazJonesAndTheMayfieldRegulators): class LazJonesAndTheMayfieldRegulatorsSideStories(LazJonesAndTheMayfieldRegulators):
name = 'LazJonesAndTheMayfieldRegulators/SideStories' name = 'LazJonesAndTheMayfieldRegulators/SideStories'
baseUrl = 'https://www.lazjones.com/' baseUrl = 'https://www.lazjones.com/'
url = baseUrl + 'sidestories' url = baseUrl + 'comics'
stripUrl = baseUrl + 'comic/%s' stripUrl = baseUrl + 'comic/%s'
firstStripUrl = stripUrl % 'journal01' 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): class LeastICouldDo(_ParserScraper):
url = 'https://leasticoulddo.com/' url = 'https://leasticoulddo.com/'