Fix Freefall
This commit is contained in:
parent
18379b8fc0
commit
d732767e02
1 changed files with 14 additions and 6 deletions
|
@ -157,12 +157,20 @@ class FredoAndPidjin(_ParserScraper):
|
||||||
namer = joinPathPartsNamer((0, 1, 2))
|
namer = joinPathPartsNamer((0, 1, 2))
|
||||||
|
|
||||||
|
|
||||||
class Freefall(_BasicScraper):
|
class Freefall(_ParserScraper):
|
||||||
url = 'http://freefall.purrsia.com/default.htm'
|
url = 'http://freefall.purrsia.com/'
|
||||||
stripUrl = 'http://freefall.purrsia.com/ff%s/fc%s.htm'
|
stripUrl = url + 'ff%d/%s%05d.htm'
|
||||||
imageSearch = compile(r'<img src="(/ff\d+/.+?.\w{3,4})"')
|
firstStripUrl = stripUrl % (100, 'fv', 1)
|
||||||
prevSearch = compile(r'<A HREF="(/ff\d+/.+?.htm)">Previous</A>')
|
imageSearch = '//img[contains(@src, "/ff")]'
|
||||||
help = 'Index format: nnnn/nnnnn'
|
prevSearch = '//a[text()="Previous"]'
|
||||||
|
multipleImagesPerStrip = True
|
||||||
|
|
||||||
|
def getIndexStripUrl(self, index):
|
||||||
|
# Get comic strip URL from index
|
||||||
|
index = int(index)
|
||||||
|
chapter = index + 100 - (index % 100)
|
||||||
|
color = 'fc' if index > 1252 else 'fv'
|
||||||
|
return self.stripUrl % (chapter, color, index)
|
||||||
|
|
||||||
|
|
||||||
class FreighterTails(_ParserScraper):
|
class FreighterTails(_ParserScraper):
|
||||||
|
|
Loading…
Reference in a new issue