diff --git a/dosagelib/plugins/b.py b/dosagelib/plugins/b.py index 26439137d..ba9c307f0 100644 --- a/dosagelib/plugins/b.py +++ b/dosagelib/plugins/b.py @@ -282,14 +282,6 @@ class Brink(_WordPressScraper): endOfLife = True -class BroodHollow(_WordPressScraper): - url = 'https://broodhollow.chainsawsuit.com/' - firstStripUrl = url + 'page/2012/10/06/book-1-curious-little-thing' - - def shouldSkipUrl(self, url, data): - return data.xpath('//div[@id="comic"]//iframe') - - class Buni(_WordPressScraper): url = 'http://www.bunicomic.com/' diff --git a/dosagelib/plugins/c.py b/dosagelib/plugins/c.py index da064e3c3..f29c0d1f0 100644 --- a/dosagelib/plugins/c.py +++ b/dosagelib/plugins/c.py @@ -202,14 +202,6 @@ class Centralia2050(_WordPressScraper): return page + '.' + ext -class ChainsawSuit(_WordPressScraper): - url = 'http://chainsawsuit.com/comic/' - stripUrl = url + '%s/' - firstStripUrl = stripUrl % '2008/03/12/strip-338' - prevSearch = '//img[@alt="previous"]/..' - help = 'Index format: yyyy/mm/dd/stripname' - - class ChannelAte(_WPNavi): url = 'http://www.channelate.com/' diff --git a/dosagelib/plugins/krisstraub.py b/dosagelib/plugins/krisstraub.py new file mode 100644 index 000000000..90597f040 --- /dev/null +++ b/dosagelib/plugins/krisstraub.py @@ -0,0 +1,23 @@ +# SPDX-License-Identifier: MIT +# Copyright (C) 2021 Tobias Gruetzmacher +from .common import _WordPressScraper + + +class KrisStraub(_WordPressScraper): + prevSearch = '//a[text()="Previous"]' + endOfLife = True + help = 'Index format: yyyymmdd' + + def __init__(self, name, firstDate): + super().__init__(name) + self.url = 'https://{}.krisstraub.com/'.format(name.lower()) + self.stripUrl = self.url + '%s.shtml' + self.firstStripUrl = self.stripUrl % firstDate + + @classmethod + def getmodules(cls): + return ( + cls('BroodHollow', '20121006'), + cls('ChainsawSuit', '20080810'), + cls('Starslip', '20050523'), + )