From 7073ab77074d36f5ec9fb8e19e697ab84581b596 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Wed, 11 Apr 2018 15:45:36 +0200 Subject: [PATCH] [komikcast] update regex to only match manga pages The 'readerarea' section now includes some (shady) external Javascript file, which got matched as well. --- gallery_dl/extractor/komikcast.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gallery_dl/extractor/komikcast.py b/gallery_dl/extractor/komikcast.py index f5fd6edc..04805001 100644 --- a/gallery_dl/extractor/komikcast.py +++ b/gallery_dl/extractor/komikcast.py @@ -79,7 +79,7 @@ class KomikcastChapterExtractor(KomikcastBase, ChapterExtractor): "height": util.safe_int(height), }) for url, width, height in re.findall( - r"\s+src=[\"']([^\"']+)[\"']" + r"]*? src=[\"']([^\"']+)[\"']" r"(?:\s+data-original-width=[\"']([^\"']+)[\"'])?" r"(?:\s+data-original-height=[\"']([^\"']+)[\"'])?", readerarea