Fix LazJonesAndTheMayfieldRegulators
This commit is contained in:
parent
c532f80bcd
commit
73ac10dc84
1 changed files with 7 additions and 1 deletions
|
@ -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/'
|
||||||
|
|
Loading…
Reference in a new issue