From 599672acbf925cab634bc15ab47055aabb131efd Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Thu, 5 Dec 2013 18:29:15 +0100 Subject: [PATCH] Fix xkcd text regex. Closes #46 --- dosagelib/plugins/x.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dosagelib/plugins/x.py b/dosagelib/plugins/x.py index fae1f2f51..51a42c3fd 100644 --- a/dosagelib/plugins/x.py +++ b/dosagelib/plugins/x.py @@ -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