Fix BratHalla and BrentalFloss
This commit is contained in:
parent
10985ae614
commit
a3d74c5a0e
1 changed files with 8 additions and 6 deletions
|
@ -159,16 +159,13 @@ class BookOfBiff(_BasicScraper):
|
||||||
help = 'Index format: yyyy/mm/dd/stripnum-strip-name'
|
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):
|
class BratHalla(_BasicScraper):
|
||||||
url = 'http://brat-halla.com/'
|
url = 'http://brat-halla.com/'
|
||||||
stripUrl = url + 'comic/%s'
|
stripUrl = url + 'comic/%s/'
|
||||||
|
firstStripUrl = stripUrl % '1-balder-dash'
|
||||||
imageSearch = compile(r"(/comics/.+?)' target='_blank")
|
imageSearch = compile(r"(/comics/.+?)' target='_blank")
|
||||||
prevSearch = compile(r'headernav2".+?"(http.+?)"')
|
prevSearch = compile(r'headernav2".+?"(http.+?)"')
|
||||||
help = 'Index format: non'
|
help = 'Index format: number-stripname'
|
||||||
|
|
||||||
|
|
||||||
class BrentalFloss(_BasicScraper):
|
class BrentalFloss(_BasicScraper):
|
||||||
|
@ -178,6 +175,11 @@ class BrentalFloss(_BasicScraper):
|
||||||
prevSearch = compile(tagre("a", "href", r'([^"]*)') + "Prev")
|
prevSearch = compile(tagre("a", "href", r'([^"]*)') + "Prev")
|
||||||
help = 'Index format: n'
|
help = 'Index format: n'
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def prevUrlModifier(cls, prevUrl):
|
||||||
|
if prevUrl:
|
||||||
|
return prevUrl.replace("www.", "")
|
||||||
|
|
||||||
|
|
||||||
class BrentalFlossFit(BrentalFloss):
|
class BrentalFlossFit(BrentalFloss):
|
||||||
name = 'BrentalFloss/FlossedInTime'
|
name = 'BrentalFloss/FlossedInTime'
|
||||||
|
|
Loading…
Reference in a new issue