From befa9b8a3e0dff545cb099b897cdc978463fef44 Mon Sep 17 00:00:00 2001 From: Duy Nguyen <7498938+nthduy@users.noreply.github.com> Date: Sun, 25 Jan 2026 11:40:15 +0100 Subject: [PATCH] [mangatown] fix base url and simplify image extraction --- gallery_dl/extractor/mangatown.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/gallery_dl/extractor/mangatown.py b/gallery_dl/extractor/mangatown.py index ea762c8d..046135ac 100644 --- a/gallery_dl/extractor/mangatown.py +++ b/gallery_dl/extractor/mangatown.py @@ -26,7 +26,7 @@ class MangatownChapterExtractor(MangatownBase, ChapterExtractor): def __init__(self, match): self.part, self.volume, self.chapter = match.groups() - self.base = f"{self.root}/manga/{self.part}/" + self.base = self.root + self.part + "/" ChapterExtractor.__init__(self, match, self.base + "1.html") def metadata(self, page): @@ -55,9 +55,8 @@ class MangatownChapterExtractor(MangatownBase, ChapterExtractor): pnum = 1 while True: - url, pos = text.extract(page, 'id="image" src="', '"') - if not url: - url, pos = text.extract(page, '