From 6d76193a9f6e8beee29d92ec3c79efb4f6218e86 Mon Sep 17 00:00:00 2001 From: Techwolf Date: Wed, 19 Jun 2019 01:27:06 -0700 Subject: [PATCH] Add IslaAukate and IslaAukateColor --- dosagelib/plugins/i.py | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/dosagelib/plugins/i.py b/dosagelib/plugins/i.py index dd595ed92..3d9e26728 100644 --- a/dosagelib/plugins/i.py +++ b/dosagelib/plugins/i.py @@ -7,7 +7,7 @@ from __future__ import absolute_import, division, print_function from re import compile, escape -from ..scraper import _BasicScraper +from ..scraper import _BasicScraper, _ParserScraper from ..util import tagre from .common import _WordPressScraper, _WPNavi @@ -52,5 +52,28 @@ class IrregularWebcomic(_BasicScraper): help = 'Index format: nnn' +class IslaAukate(_ParserScraper): + url = 'https://overlordcomic.com/archive/default/latest' + stripUrl = 'https://overlordcomic.com/archive/default/pages/%s' + firstStripUrl = stripUrl % '001' + imageSearch = '//div[@id="comicpage"]/img' + prevSearch = '//nav[@class="comicnav"]/a[text()="Prev"]' + + +class IslaAukateColor(_ParserScraper): + url = 'https://overlordcomic.com/archive/color/latest' + stripUrl = 'https://overlordcomic.com/archive/color/pages/%s' + firstStripUrl = stripUrl % '001' + imageSearch = '//div[@id="comicpage"]/img' + prevSearch = '//nav[@class="comicnav"]/a[text()="Prev"]' + + def namer(self, imageUrl, pageUrl): + # Fix filenames of early comics + filename = imageUrl.rsplit('/', 1)[-1] + if filename[0].isdigit(): + filename = 'Aukate' + filename + return filename + + class ItsWalky(_WordPressScraper): url = 'http://www.itswalky.com/'