diff --git a/dosagelib/plugins/e.py b/dosagelib/plugins/e.py index d423528dd..d4ca493df 100644 --- a/dosagelib/plugins/e.py +++ b/dosagelib/plugins/e.py @@ -4,7 +4,7 @@ # SPDX-FileCopyrightText: © 2015 Tobias Gruetzmacher # SPDX-FileCopyrightText: © 2019 Daniel Ring import os -from re import compile, IGNORECASE +from re import compile, sub, IGNORECASE from ..helpers import bounceStarter, indirectStarter from ..scraper import ParserScraper, _BasicScraper, _ParserScraper @@ -214,6 +214,28 @@ class Evon(WordPressScraper): adult = True +class ExorcismAcademy(ParserScraper): + url = 'https://ea.asmodrawscomics.com/' + stripUrl = url + 'comic/%s/' + firstStripUrl = stripUrl % 'title-page' + imageSearch = '//div[contains(@class, "webcomic-image")]//img[contains(@class, "size-full")]' + prevSearch = '//a[contains(@class, "previous-webcomic-link")]' + multipleImagesPerStrip = True + adult = True + + def namer(self, image_url, page_url): + def repl(m): + return "{0}-{1}".format(m.group(2).zfill(4), m.group(1)) + + indexes = tuple(image_url.rstrip('/').split('/')[-3:]) + day = sub(r'^(.+?)-?(?:Pg-(\d+))', repl, indexes[2]) + name = "{year}-{month}-{day}".format( + year = indexes[0], + month = indexes[1], + day = day) + return name + + class ExploitationNow(WordPressNavi): url = 'http://www.exploitationnow.com/' firstStripUrl = url + '2000-07-07/9'