Fix Bethellium and Moonlace
This commit is contained in:
parent
4ccb66684f
commit
13c612c26e
2 changed files with 7 additions and 30 deletions
|
@ -99,22 +99,9 @@ class Beetlebum(_BasicScraper):
|
||||||
|
|
||||||
|
|
||||||
class Bethellium(_WPWebcomic):
|
class Bethellium(_WPWebcomic):
|
||||||
stripUrl = 'http://dbcomics.darkblueworkshop.com/bethellium/%s/'
|
url = 'https://bethellium.darkbluecomics.com/'
|
||||||
firstStripUrl = stripUrl % 'chapter-1/cover'
|
stripUrl = url + 'comic/%s/'
|
||||||
url = firstStripUrl
|
firstStripUrl = stripUrl % 'cover'
|
||||||
latestSearch = '//main' + _WPWebcomic.latestSearch
|
|
||||||
starter = indirectStarter
|
|
||||||
|
|
||||||
def getPrevUrl(self, url, data):
|
|
||||||
prevUrl = super(Bethellium, self).getPrevUrl(url, data)
|
|
||||||
return prevUrl.replace('%webcomic2_storyline%', 'chapter-2-the-hemlocks-scar')
|
|
||||||
|
|
||||||
def namer(self, imageUrl, pageUrl):
|
|
||||||
# Prepend chapter title to page filenames
|
|
||||||
chapter = pageUrl.rstrip('/').rsplit('/', 3)[-2]
|
|
||||||
chapter = chapter.replace('chapter-1', 'chapter-1-the-magic-city')
|
|
||||||
page = imageUrl.rsplit('/', 1)[-1]
|
|
||||||
return chapter + '_' + page
|
|
||||||
|
|
||||||
|
|
||||||
class BetterDays(_ParserScraper):
|
class BetterDays(_ParserScraper):
|
||||||
|
|
|
@ -179,26 +179,16 @@ class MonsieurLeChien(_BasicScraper):
|
||||||
|
|
||||||
|
|
||||||
class Moonlace(_WPWebcomic):
|
class Moonlace(_WPWebcomic):
|
||||||
stripUrl = 'http://dbcomics.darkblueworkshop.com/moonlace/%s/'
|
url = 'https://moonlace.darkbluecomics.com/'
|
||||||
firstStripUrl = stripUrl % 'prologue/page-1'
|
stripUrl = url + 'comic/%s/'
|
||||||
url = firstStripUrl
|
firstStripUrl = stripUrl % 'page-0-1'
|
||||||
latestSearch = '//main' + _WPWebcomic.latestSearch
|
|
||||||
adult = True
|
adult = True
|
||||||
|
|
||||||
def starter(self):
|
def starter(self):
|
||||||
# Set age-gate cookie
|
# Set age-gate cookie
|
||||||
self.session.cookies.set('age_gate', '1', domain='darkblueworkshop.com')
|
self.session.cookies.set('age_gate', '1', domain='moonlace.darkblueworkshop.com')
|
||||||
return indirectStarter(self)
|
return indirectStarter(self)
|
||||||
|
|
||||||
def namer(self, imageUrl, pageUrl):
|
|
||||||
# Prepend chapter title to page filenames
|
|
||||||
chapter = pageUrl.rstrip('/').rsplit('/', 3)[-2]
|
|
||||||
chapter = chapter.replace('prologue', 'chapter-0-prologue')
|
|
||||||
chapter = chapter.replace('chapter-1', 'chapter-1-heritage')
|
|
||||||
chapter = chapter.replace('chapter2', 'chapter-2')
|
|
||||||
page = imageUrl.rsplit('/', 1)[-1]
|
|
||||||
return chapter + '_' + page
|
|
||||||
|
|
||||||
|
|
||||||
class Moonsticks(_ParserScraper):
|
class Moonsticks(_ParserScraper):
|
||||||
url = "http://moonsticks.org/"
|
url = "http://moonsticks.org/"
|
||||||
|
|
Loading…
Reference in a new issue