Restrict ComicsKingdom module to current comic

This prevents the scraper from randomly switching to a different comic
(fixes #314)
This commit is contained in:
Tobias Gruetzmacher 2024-05-12 13:44:53 +02:00
parent 0bfcd32385
commit dce299903b
No known key found for this signature in database

View file

@ -11,7 +11,6 @@ class ComicsKingdom(ParserScraper):
partDiv = '//div[d:class("comic-reader-item")]'
imageSearch = partDiv + '[1]//a[contains(@href, "/custom-framed-print/")]'
prevSearch = partDiv + '[2]/@data-link'
latestSearch = '//a[re:test(@href, "/[0-9-]+$")]'
starter = indirectStarter
help = 'Index format: yyyy-mm-dd'
@ -19,6 +18,7 @@ class ComicsKingdom(ParserScraper):
super().__init__('ComicsKingdom/' + name)
self.url = 'https://comicskingdom.com/' + path
self.stripUrl = self.url + '/%s'
self.latestSearch = f'//a[re:test(@href, "/{path}/[0-9-]+$")]'
if lang:
self.lang = lang