From da30ce29bbbc989d3383f1ad93bcfd57eaaea795 Mon Sep 17 00:00:00 2001 From: Tobias Gruetzmacher Date: Fri, 3 Jun 2022 22:28:21 +0200 Subject: [PATCH] Add C-Section Comics (fixes #223) --- dosagelib/plugins/c.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/dosagelib/plugins/c.py b/dosagelib/plugins/c.py index 0bc432023..83dc9e1c6 100644 --- a/dosagelib/plugins/c.py +++ b/dosagelib/plugins/c.py @@ -7,7 +7,7 @@ from re import compile, escape from typing import List from ..scraper import _BasicScraper, _ParserScraper -from ..helpers import bounceStarter, indirectStarter +from ..helpers import bounceStarter, indirectStarter, joinPathPartsNamer from ..util import tagre from .common import _WordPressScraper, _WPNavi, _WPWebcomic @@ -404,6 +404,13 @@ class CrossTimeCafe(_ParserScraper): endOfLife = True +class CSectionComics(_WordPressScraper): + url = 'https://www.csectioncomics.com/' + firstStripUrl = url + 'comics/one-day-in-country' + namer = joinPathPartsNamer((), (-3, -2, -1)) + multipleImagesPerStrip = True + + class CucumberQuest(_WPWebcomic): baseUrl = 'http://cucumber.gigidigi.com/' stripUrl = baseUrl + 'cq/%s/'