Fix CyanideAndHappiness image regex.

This commit is contained in:
Bastian Kleineidam 2013-01-23 21:35:36 +01:00
parent f1356a9ff8
commit 399cda21e5

View file

@ -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)'