Erfworld: Add Kickstarter Stories

This commit is contained in:
toonn 2021-08-18 14:19:08 +02:00
parent d0f271f74d
commit c3e4c914c4
No known key found for this signature in database
GPG key ID: A1756943D328A924

View file

@ -102,7 +102,7 @@ class EmergencyExit(_BasicScraper):
class Erfworld(_ParserScraper): class Erfworld(_ParserScraper):
stripUrl = 'https://archives.erfworld.com/%s' stripUrl = 'https://archives.erfworld.com/%s'
url = stripUrl % 'getLatestPage.php' url = stripUrl % 'getLatestPage.php'
firstStripUrl = stripUrl % 'Book+0/1' firstStripUrl = stripUrl % 'Kickstarter+Stories/1'
imageSearch = '//div[@class="page_content"]//img' imageSearch = '//div[@class="page_content"]//img'
textSearch = '//div[@class="page_content"]' textSearch = '//div[@class="page_content"]'
prevSearch = '//li[@class="previous"]/a' prevSearch = '//li[@class="previous"]/a'
@ -134,8 +134,10 @@ class Erfworld(_ParserScraper):
return self.stripUrl % 'Book+2/231' return self.stripUrl % 'Book+2/231'
elif url == self.stripUrl % 'Book+2/1': elif url == self.stripUrl % 'Book+2/1':
return self.stripUrl % 'Book+1/184' return self.stripUrl % 'Book+1/184'
if url == self.stripUrl % 'Book+1/1': elif url == self.stripUrl % 'Book+1/1':
return self.stripUrl % 'Book+0/81' return self.stripUrl % 'Book+0/81'
elif url == self.stripUrl % 'Book+0/1':
return self.stripUrl % 'Kickstarter+Stories/54'
return super(Erfworld, self).getPrevUrl(url, data) return super(Erfworld, self).getPrevUrl(url, data)