fixed PokeyThePenguin

This commit is contained in:
Damjan Košir 2015-05-26 22:31:43 +12:00
parent 766b7ba99d
commit 605c5f8619

View file

@ -181,17 +181,17 @@ class _PlanescapeSurvival(_BasicScraper):
help = 'Index format: nnn' help = 'Index format: nnn'
class PokeyThePenguin(_BasicScraper): class PokeyThePenguin(_ParserScraper):
baseUrl = 'http://www.yellow5.com/pokey/archive/' url = 'http://www.yellow5.com/pokey/archive/'
url = baseUrl + 'index558.html' stripUrl = url + 'index%s.html'
stripUrl = baseUrl + 'index%s.html'
firstStripUrl = stripUrl % '1' firstStripUrl = stripUrl % '1'
imageSearch = compile(tagre("img", "src", r'(pokey\d+[^"]+)')) imageSearch = '//p/img'
prevSearch = True prevSearch = True
multipleImagesPerStrip = True multipleImagesPerStrip = True
starter = indirectStarter(url, "(//a)[last()]")
help = 'Index format: number' help = 'Index format: number'
def getPrevUrl(self, url, data, baseUrl): def getPrevUrl(self, url, data):
"""Decrease index.html number.""" """Decrease index.html number."""
mo = compile(r"index(\d+)\.html").search(url) mo = compile(r"index(\d+)\.html").search(url)
num = int(mo.group(1)) - 1 num = int(mo.group(1)) - 1