Skip to content

Commit

Permalink
Add ExorcismAcademy
Browse files Browse the repository at this point in the history
  • Loading branch information
dmoonfire committed Sep 24, 2023
1 parent 92bdd00 commit 809796f
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion dosagelib/plugins/e.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Check warning on line 224 in dosagelib/plugins/e.py

View check run for this annotation

Jenkins - Dosage / Flake8

E251

HIGH: unexpected spaces around keyword / parameter equals

Check warning on line 225 in dosagelib/plugins/e.py

View check run for this annotation

Jenkins - Dosage / Flake8

E251

HIGH: unexpected spaces around keyword / parameter equals
def namer(self, image_url, page_url):

Check warning on line 226 in dosagelib/plugins/e.py

View check run for this annotation

Jenkins - Dosage / Flake8

E251

HIGH: unexpected spaces around keyword / parameter equals
def repl(m):
return "{0}-{1}".format(m.group(2).zfill(4), m.group(1))

Check warning on line 228 in dosagelib/plugins/e.py

View check run for this annotation

Codecov / codecov/patch

dosagelib/plugins/e.py#L227-L228

Added lines #L227 - L228 were not covered by tests

indexes = tuple(image_url.rstrip('/').split('/')[-3:])
day = sub(r'^(.+?)-?(?:Pg-(\d+))', repl, indexes[2])
name = "{year}-{month}-{day}".format(

Check warning on line 232 in dosagelib/plugins/e.py

View check run for this annotation

Codecov / codecov/patch

dosagelib/plugins/e.py#L230-L232

Added lines #L230 - L232 were not covered by tests
year = indexes[0],
month = indexes[1],
day = day)
return name

Check warning on line 236 in dosagelib/plugins/e.py

View check run for this annotation

Codecov / codecov/patch

dosagelib/plugins/e.py#L236

Added line #L236 was not covered by tests


class ExploitationNow(WordPressNavi):
url = 'http://www.exploitationnow.com/'
firstStripUrl = url + '2000-07-07/9'
Expand Down

0 comments on commit 809796f

Please sign in to comment.