Fix comics.

This commit is contained in:
Bastian Kleineidam 2012-10-11 16:06:45 +02:00
parent d7a4ca351b
commit ecfc88faf1

View file

@ -9,8 +9,8 @@ from ..helpers import regexNamer, bounceStarter, indirectStarter
class ALessonIsLearned(_BasicScraper): class ALessonIsLearned(_BasicScraper):
latestUrl = 'http://www.alessonislearned.com/' latestUrl = 'http://www.alessonislearned.com/'
imageUrl = 'http://www.alessonislearned.com/lesson%s.html' imageUrl = 'http://www.alessonislearned.com/lesson%s.html'
imageSearch = compile(tagre("img", "src", r"(cmx/lesson.+?)")) imageSearch = compile(tagre("img", "src", r"(cmx/lesson\d+\.[a-z]+)"))
prevSearch = compile(tagre("a", "href", r"(index\.php\?comic=.+?)")+r".+?previous") prevSearch = compile(tagre("a", "href", r"(index\.php\?comic=\d+)", quote="'")+r"[^>]+previous")
help = 'Index format: nnn' help = 'Index format: nnn'
@ -18,7 +18,7 @@ class ASofterWorld(_BasicScraper):
latestUrl = 'http://www.asofterworld.com/' latestUrl = 'http://www.asofterworld.com/'
imageUrl = 'http://www.asofterworld.com/index.php?id=%s' imageUrl = 'http://www.asofterworld.com/index.php?id=%s'
imageSearch = compile(tagre("img", "src", r'(http://www\.asofterworld\.com/clean/[^"]+)')) 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)' help = 'Index format: n (unpadded)'