Fix Moonlace and Bethellium

This commit is contained in:
Techwolf 2020-05-23 18:17:42 -07:00
parent c29bd2f069
commit 9764b82101
2 changed files with 4 additions and 2 deletions

View file

@ -101,8 +101,9 @@ class Beetlebum(_BasicScraper):
class Bethellium(_WPWebcomic): class Bethellium(_WPWebcomic):
stripUrl = 'http://dbcomics.darkblueworkshop.com/bethellium/%s/' stripUrl = 'http://dbcomics.darkblueworkshop.com/bethellium/%s/'
firstStripUrl = stripUrl % 'chapter-1/webcomic-bethellium-chapter-1-cover' firstStripUrl = stripUrl % 'chapter-1/cover'
url = firstStripUrl url = firstStripUrl
latestSearch = '//main' + _WPWebcomic.latestSearch
starter = indirectStarter starter = indirectStarter
def getPrevUrl(self, url, data): def getPrevUrl(self, url, data):

View file

@ -177,11 +177,12 @@ class Moonlace(_WPWebcomic):
stripUrl = 'http://dbcomics.darkblueworkshop.com/moonlace/%s/' stripUrl = 'http://dbcomics.darkblueworkshop.com/moonlace/%s/'
firstStripUrl = stripUrl % 'prologue/page-1' firstStripUrl = stripUrl % 'prologue/page-1'
url = firstStripUrl url = firstStripUrl
latestSearch = '//main' + _WPWebcomic.latestSearch
adult = True adult = True
def starter(self): def starter(self):
# Set age-gate cookie # Set age-gate cookie
self.session.get(self.firstStripUrl + '?webcomic_birthday=1') self.session.cookies.set('age_gate', '1', domain='darkblueworkshop.com')
return indirectStarter(self) return indirectStarter(self)
def namer(self, imageUrl, pageUrl): def namer(self, imageUrl, pageUrl):