From 85a7adadc95be130543f4617d6d094e923037aee Mon Sep 17 00:00:00 2001 From: Techwolf Date: Fri, 5 Jul 2019 23:05:23 -0700 Subject: [PATCH] Add TheGentleWolf --- dosagelib/plugins/t.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/dosagelib/plugins/t.py b/dosagelib/plugins/t.py index b06c740a4..f588d7734 100644 --- a/dosagelib/plugins/t.py +++ b/dosagelib/plugins/t.py @@ -66,6 +66,19 @@ class TheGentlemansArmchair(_WordPressScraper): url = 'http://thegentlemansarmchair.com/' +class TheGentleWolf(_WordPressScraper): + url = 'https://thegentlewolf.net/' + stripUrl = url + 'comic/%s/' + firstStripUrl = stripUrl % 'tgw-001' + + def namer(self, imageUrl, pageUrl): + # Fix duplicate filename + filename = imageUrl.rsplit('/', 1)[-1] + if pageUrl == self.stripUrl % 'tgw-271': + filename = filename.replace('272', '271') + return filename + + class TheLandscaper(_BasicScraper): stripUrl = 'http://landscaper.visual-assault.net/comic/%s' url = stripUrl % 'latest'