[komikcast] update regex to only match manga pages

The 'readerarea' section now includes some (shady) external
Javascript file, which got matched as well.
This commit is contained in:
Mike Fährmann
2018-04-11 15:45:36 +02:00
parent a1fa4b43b0
commit 7073ab7707

View File

@@ -79,7 +79,7 @@ class KomikcastChapterExtractor(KomikcastBase, ChapterExtractor):
"height": util.safe_int(height),
})
for url, width, height in re.findall(
r"\s+src=[\"']([^\"']+)[\"']"
r"<img[^>]*? src=[\"']([^\"']+)[\"']"
r"(?:\s+data-original-width=[\"']([^\"']+)[\"'])?"
r"(?:\s+data-original-height=[\"']([^\"']+)[\"'])?",
readerarea