From dd5cad2b28eebd2ce71a66ed1a1cfe336101a3f6 Mon Sep 17 00:00:00 2001 From: eight Date: Sun, 24 Dec 2023 17:17:10 +0800 Subject: [PATCH] Fix: failed matching image in cartoonmad (#364) --- 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):