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