Fix WLP/PeterIsTheWolf

This commit is contained in:
Techwolf 2019-06-26 21:19:24 -07:00 committed by Tobias Gruetzmacher
parent 1a938ffa05
commit aa22d05c44

View file

@ -64,6 +64,13 @@ class PeterIsTheWolfAdult(_WLPComics):
multipleImagesPerStrip = True multipleImagesPerStrip = True
adult = True adult = True
def namer(self, imageUrl, pageUrl):
name = pageUrl.rsplit('/', 1)[-1].split('.')[0] + '_' + imageUrl.rsplit('/', 1)[-1]
if 'adult' in imageUrl:
name = name.split('.')
return name[0] + '_adult.' + name[1]
return name
def getPrevUrl(self, url, data): def getPrevUrl(self, url, data):
# Fix loop in site navigation # Fix loop in site navigation
if url == self.stripUrl % '194': if url == self.stripUrl % '194':