Restrict ComicsKingdom module to current comic
This prevents the scraper from randomly switching to a different comic (fixes #314)
This commit is contained in:
parent
0bfcd32385
commit
dce299903b
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,6 @@ class ComicsKingdom(ParserScraper):
|
||||||
partDiv = '//div[d:class("comic-reader-item")]'
|
partDiv = '//div[d:class("comic-reader-item")]'
|
||||||
imageSearch = partDiv + '[1]//a[contains(@href, "/custom-framed-print/")]'
|
imageSearch = partDiv + '[1]//a[contains(@href, "/custom-framed-print/")]'
|
||||||
prevSearch = partDiv + '[2]/@data-link'
|
prevSearch = partDiv + '[2]/@data-link'
|
||||||
latestSearch = '//a[re:test(@href, "/[0-9-]+$")]'
|
|
||||||
starter = indirectStarter
|
starter = indirectStarter
|
||||||
help = 'Index format: yyyy-mm-dd'
|
help = 'Index format: yyyy-mm-dd'
|
||||||
|
|
||||||
|
@ -19,6 +18,7 @@ class ComicsKingdom(ParserScraper):
|
||||||
super().__init__('ComicsKingdom/' + name)
|
super().__init__('ComicsKingdom/' + name)
|
||||||
self.url = 'https://comicskingdom.com/' + path
|
self.url = 'https://comicskingdom.com/' + path
|
||||||
self.stripUrl = self.url + '/%s'
|
self.stripUrl = self.url + '/%s'
|
||||||
|
self.latestSearch = f'//a[re:test(@href, "/{path}/[0-9-]+$")]'
|
||||||
if lang:
|
if lang:
|
||||||
self.lang = lang
|
self.lang = lang
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue