[common] only auto-set page_url when first group starts with /

This commit is contained in:
Mike Fährmann
2025-06-26 23:35:53 +02:00
parent 26e81e4162
commit df6f4e5307
5 changed files with 17 additions and 24 deletions

View File

@@ -88,9 +88,6 @@ class ComickChapterExtractor(ComickBase, ChapterExtractor):
pattern = BASE_PATTERN + r"/comic/([\w-]+)/(\w+-chapter-[^/?#]+)"
example = "https://comick.io/comic/MANGA/ID-chapter-123-en"
def __init__(self, match):
ChapterExtractor.__init__(self, match, False)
def metadata(self, page):
slug, chstr = self.groups
manga = self._manga_info(slug)
@@ -134,9 +131,6 @@ class ComickMangaExtractor(ComickBase, MangaExtractor):
pattern = BASE_PATTERN + r"/comic/([\w-]+)/?(?:\?([^#]+))?"
example = "https://comick.io/comic/MANGA"
def __init__(self, match):
MangaExtractor.__init__(self, match, False)
def items(self):
slug = self.groups[0]
manga = self._manga_info(slug)