From 51d0176f53a4d0dedd2fa76c8db6c45a95b4dc8c Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Wed, 23 Jan 2013 21:53:34 +0100 Subject: [PATCH] Fix CyanideAndHappiness image regex - really. --- 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 2d960c510..d2f23a59a 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/|comic)[^"]+)')) + imageSearch = compile(tagre("img", "src", r'(http://(?:www\.)?explosm\.net/db/files/[^"]+)', before="a daily webcomic")) prevSearch = compile(tagre("a", "href", r'(/comics/\d+/)', before="prev")) help = 'Index format: n (unpadded)'