Fix xkcd text regex. Closes #46

This commit is contained in:
Bastian Kleineidam 2013-12-05 18:29:15 +01:00
parent ce64d7f1ef
commit 599672acbf

View file

@ -18,7 +18,7 @@ class xkcd(_BasicScraper):
prevSearch = compile(tagre("a", "href", r'(/\d+/)', before="prev"))
help = 'Index format: n (unpadded)'
description = u'A webcomic of romance, sarcasm, math, and language.'
textSearch = compile(tagre("img", "title", r'([^"]+)'))
textSearch = compile(tagre("img", "title", r'([^"]+)', before=r'http://imgs\.xkcd\.com/comics/'))
adult = True
@classmethod