CyanideAndHappiness fix

This commit is contained in:
Dirk Reiners 2018-04-20 19:19:01 -05:00 committed by Tobias Gruetzmacher
parent fbd2ac2246
commit 01c1b04778

View file

@ -292,13 +292,12 @@ class Curvy(_ParserScraper):
class CyanideAndHappiness(_BasicScraper): class CyanideAndHappiness(_BasicScraper):
url = 'http://www.explosm.net/comics/' url = 'http://www.explosm.net/'
starter = bounceStarter
stripUrl = url + '%s/' stripUrl = url + '%s/'
firstStripUrl = stripUrl % '15' firstStripUrl = stripUrl % '15'
imageSearch = compile(tagre("img", "src", r'(//files.explosm.net/comics/[^"]+)', before="main-comic")) imageSearch = compile(tagre("img", "src", r'(//files.explosm.net/comics/[^"]+)', before="main-comic"))
prevSearch = compile(tagre("a", "href", r'(/comics/\d+/)', after="previous-comic")) prevSearch = compile(tagre("a", "href", r'(/comics/\d+/)', after="nav-previous"))
nextSearch = compile(tagre("a", "href", r"(/comics/\d+/)", after="next-comic")) nextSearch = compile(tagre("a", "href", r"(/comics/\d+/)", after="nav-next"))
help = 'Index format: n (unpadded)' help = 'Index format: n (unpadded)'
def shouldSkipUrl(self, url, data): def shouldSkipUrl(self, url, data):