Fix CyanideAndHappiness image regex - really.

This commit is contained in:
Bastian Kleineidam 2013-01-23 21:53:34 +01:00
parent 399cda21e5
commit 51d0176f53

View file

@ -182,7 +182,7 @@ class CyanideAndHappiness(_BasicScraper):
_latestUrl = 'http://www.explosm.net/comics/' _latestUrl = 'http://www.explosm.net/comics/'
starter = bounceStarter(_latestUrl, compile(tagre("a", "href", r"(/comics/\d+/)", before="next"))) starter = bounceStarter(_latestUrl, compile(tagre("a", "href", r"(/comics/\d+/)", before="next")))
stripUrl = _latestUrl + '%s/' 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")) prevSearch = compile(tagre("a", "href", r'(/comics/\d+/)', before="prev"))
help = 'Index format: n (unpadded)' help = 'Index format: n (unpadded)'