Fix BratHalla and BrentalFloss

This commit is contained in:
Bastian Kleineidam 2013-03-26 17:33:51 +01:00
parent 10985ae614
commit a3d74c5a0e

View file

@ -159,16 +159,13 @@ class BookOfBiff(_BasicScraper):
help = 'Index format: yyyy/mm/dd/stripnum-strip-name'
### With BratHalla there is no 'previous' link at comic 360
### You will need to use
### mainline -c BratHalla:360-backup-dad-unstable-plans/
### to get earlier comics
class BratHalla(_BasicScraper):
url = 'http://brat-halla.com/'
stripUrl = url + 'comic/%s'
stripUrl = url + 'comic/%s/'
firstStripUrl = stripUrl % '1-balder-dash'
imageSearch = compile(r"(/comics/.+?)' target='_blank")
prevSearch = compile(r'headernav2".+?"(http.+?)"')
help = 'Index format: non'
help = 'Index format: number-stripname'
class BrentalFloss(_BasicScraper):
@ -178,6 +175,11 @@ class BrentalFloss(_BasicScraper):
prevSearch = compile(tagre("a", "href", r'([^"]*)') + "Prev")
help = 'Index format: n'
@classmethod
def prevUrlModifier(cls, prevUrl):
if prevUrl:
return prevUrl.replace("www.", "")
class BrentalFlossFit(BrentalFloss):
name = 'BrentalFloss/FlossedInTime'