From dce299903bfe2d384d0b6caf610cd0a3583ed635 Mon Sep 17 00:00:00 2001 From: Tobias Gruetzmacher Date: Sun, 12 May 2024 13:44:53 +0200 Subject: [PATCH] Restrict ComicsKingdom module to current comic This prevents the scraper from randomly switching to a different comic (fixes #314) --- dosagelib/plugins/comicskingdom.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dosagelib/plugins/comicskingdom.py b/dosagelib/plugins/comicskingdom.py index 08413fb4e..82a1aea40 100644 --- a/dosagelib/plugins/comicskingdom.py +++ b/dosagelib/plugins/comicskingdom.py @@ -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