From aa22d05c44fb40c8cdeb732173aa327d337ea788 Mon Sep 17 00:00:00 2001 From: Techwolf Date: Wed, 26 Jun 2019 21:19:24 -0700 Subject: [PATCH] Fix WLP/PeterIsTheWolf --- dosagelib/plugins/wlpcomics.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dosagelib/plugins/wlpcomics.py b/dosagelib/plugins/wlpcomics.py index b7701f1db..df07eae3c 100644 --- a/dosagelib/plugins/wlpcomics.py +++ b/dosagelib/plugins/wlpcomics.py @@ -64,6 +64,13 @@ class PeterIsTheWolfAdult(_WLPComics): multipleImagesPerStrip = 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): # Fix loop in site navigation if url == self.stripUrl % '194':