Fix IslaAukate and IslaAukateColor

This commit is contained in:
Techwolf 2020-04-11 16:51:08 -07:00 committed by Tobias Gruetzmacher
parent 28fa430b8a
commit 137e599dd3

View file

@ -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):