From 1a01806f4923448bbaa50b2ec49ca56e5804a01c Mon Sep 17 00:00:00 2001 From: Mark King Date: Mon, 6 Jun 2022 15:46:14 +0100 Subject: [PATCH] Support Widdershins as it no longer updates GoComics (#225) [Widdershins stopped updating on GoComics in December 2020](https://www.gocomics.com/widdershins/2020/12/08). However, the comic has been [regularly updated since](https://www.widdershinscomic.com/wdshn/may-20th-2022) on the main comic site. This commit adds a plugin for the main site. I've verified that it can scrape all comics, including recent ones not on GoComics. --- dosagelib/plugins/w.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/dosagelib/plugins/w.py b/dosagelib/plugins/w.py index 431503ec3..ce69297db 100644 --- a/dosagelib/plugins/w.py +++ b/dosagelib/plugins/w.py @@ -117,6 +117,16 @@ class WhyTheLongFace(_BasicScraper): help = 'Index format: yyyymm' +class Widdershins(_ComicControlScraper): + url = 'https://widdershinscomic.com/' + stripUrl = url + 'wdshn/%s' + firstStripUrl = stripUrl % 'sleight-of-hand-cover' + starter = bounceStarter + + def namer(self, imageUrl, pageUrl): + return pageUrl.rsplit('/', 1)[-1] + '.' + imageUrl.rsplit('.', 1)[-1] + + class Wigu(_ParserScraper): stripUrl = 'http://www.wigucomics.com/adventures/index.php?comic=%s' url = stripUrl % '-1'