From 399cda21e5052ca1ea1ef94ae2694146ead0c0b3 Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Wed, 23 Jan 2013 21:35:36 +0100 Subject: [PATCH] Fix CyanideAndHappiness image regex. --- dosagelib/plugins/c.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dosagelib/plugins/c.py b/dosagelib/plugins/c.py index 0cfacdafa..2d960c510 100644 --- a/dosagelib/plugins/c.py +++ b/dosagelib/plugins/c.py @@ -182,7 +182,7 @@ class CyanideAndHappiness(_BasicScraper): _latestUrl = 'http://www.explosm.net/comics/' starter = bounceStarter(_latestUrl, compile(tagre("a", "href", r"(/comics/\d+/)", before="next"))) stripUrl = _latestUrl + '%s/' - imageSearch = compile(tagre("img", "src", r'(http://(?:www\.)?explosm\.net/db/files/Comics/[^"]+)')) + imageSearch = compile(tagre("img", "src", r'(http://(?:www\.)?explosm\.net/db/files/(?:Comics/|comic)[^"]+)')) prevSearch = compile(tagre("a", "href", r'(/comics/\d+/)', before="prev")) help = 'Index format: n (unpadded)'