From 137e599dd395e8fce67da6ad8f478b11701837bc Mon Sep 17 00:00:00 2001 From: Techwolf Date: Sat, 11 Apr 2020 16:51:08 -0700 Subject: [PATCH] Fix IslaAukate and IslaAukateColor --- dosagelib/plugins/i.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dosagelib/plugins/i.py b/dosagelib/plugins/i.py index 874871fe9..eedf78e55 100644 --- a/dosagelib/plugins/i.py +++ b/dosagelib/plugins/i.py @@ -66,6 +66,10 @@ class IslaAukate(_ParserScraper): imageSearch = '//div[@id="comicpage"]/img' prevSearch = '//nav[@class="comicnav"]/a[text()="Prev"]' + def namer(self, imageUrl, pageUrl): + filename = imageUrl.rsplit('/', 1)[-1] + return filename.rsplit('_', 1)[0] + '.' + filename.rsplit('.', 1)[-1] + class IslaAukateColor(_ParserScraper): url = 'https://overlordcomic.com/archive/color/latest' @@ -79,7 +83,7 @@ class IslaAukateColor(_ParserScraper): filename = imageUrl.rsplit('/', 1)[-1] if filename[0].isdigit(): filename = 'Aukate' + filename - return filename + return filename.rsplit('_', 1)[0] + '.' + filename.rsplit('.', 1)[-1] class ItsWalky(_WordPressScraper):