From 8b8ab1211df2acd343c6012ff398a67d6a801f39 Mon Sep 17 00:00:00 2001 From: eight04 Date: Sun, 24 Dec 2023 17:07:44 +0800 Subject: [PATCH] Fix: failed matching image --- comiccrawler/mods/cartoonmad.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comiccrawler/mods/cartoonmad.py b/comiccrawler/mods/cartoonmad.py index f28d354..31131fe 100644 --- a/comiccrawler/mods/cartoonmad.py +++ b/comiccrawler/mods/cartoonmad.py @@ -22,7 +22,7 @@ def get_episodes(html, url): return s def get_images(html, url): - pic_url = re.search('img src="([^"]*comicpic[^"]+)', html).group(1) + pic_url = re.search(r'img src="([^"]*(comicpic|cc\.fun8\.us)[^"]+)', html).group(1) return urljoin(url, pic_url) def get_next_page(html, url):