From ecfc88faf12cfd391b8beb501eedfbaf68cfbf66 Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Thu, 11 Oct 2012 16:06:45 +0200 Subject: [PATCH] Fix comics. --- dosagelib/plugins/a.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dosagelib/plugins/a.py b/dosagelib/plugins/a.py index ef4f45999..7eacc05e0 100644 --- a/dosagelib/plugins/a.py +++ b/dosagelib/plugins/a.py @@ -9,8 +9,8 @@ from ..helpers import regexNamer, bounceStarter, indirectStarter class ALessonIsLearned(_BasicScraper): latestUrl = 'http://www.alessonislearned.com/' imageUrl = 'http://www.alessonislearned.com/lesson%s.html' - imageSearch = compile(tagre("img", "src", r"(cmx/lesson.+?)")) - prevSearch = compile(tagre("a", "href", r"(index\.php\?comic=.+?)")+r".+?previous") + imageSearch = compile(tagre("img", "src", r"(cmx/lesson\d+\.[a-z]+)")) + prevSearch = compile(tagre("a", "href", r"(index\.php\?comic=\d+)", quote="'")+r"[^>]+previous") help = 'Index format: nnn' @@ -18,7 +18,7 @@ class ASofterWorld(_BasicScraper): latestUrl = 'http://www.asofterworld.com/' imageUrl = 'http://www.asofterworld.com/index.php?id=%s' imageSearch = compile(tagre("img", "src", r'(http://www\.asofterworld\.com/clean/[^"]+)')) - prevSearch = compile(r'"([^"]+)">back') + prevSearch = compile(tagre("a", "href", "(index\.php\?id=\d+)")+'< back') help = 'Index format: n (unpadded)'