From 7f1ffff3ac99350843ae9b76e6bcc4255cebc981 Mon Sep 17 00:00:00 2001 From: Techwolf Date: Tue, 21 Apr 2020 22:44:41 -0700 Subject: [PATCH] Add KeenSpot/GeneCatlowAlternate --- dosagelib/plugins/keenspot.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/dosagelib/plugins/keenspot.py b/dosagelib/plugins/keenspot.py index c5c1d5a5d..53963040f 100644 --- a/dosagelib/plugins/keenspot.py +++ b/dosagelib/plugins/keenspot.py @@ -10,6 +10,8 @@ class KeenSpot(_ParserScraper): multipleImagesPerStrip = True imageSearch = ( '//img[contains(@src, "/comics/")]', + # Gene Catlow Alternate + '//img[contains(@src, "/altcomics/")]', # Shockwave Darkside '//img[contains(@src, "/comics2D/")]', '//img[contains(@src, "com/shockwave")]', @@ -34,7 +36,7 @@ class KeenSpot(_ParserScraper): ) help = 'Index format: yyyymmdd' - def __init__(self, name, sub, last=None, path='d/%s.html'): + def __init__(self, name, sub, last=None, adult=False, path='d/%s.html'): super(KeenSpot, self).__init__('KeenSpot/' + name) self.url = 'http://%s.keenspot.com/' % sub self.stripUrl = self.url + path @@ -43,12 +45,16 @@ class KeenSpot(_ParserScraper): self.url = self.stripUrl % last self.endOfLife = True + if adult: + self.adult = adult + @classmethod def getmodules(cls): return ( # Not on frontpage... cls('Buzzboy', 'buzzboy'), cls('EveryoneLovesAdis', 'adis'), + cls('GeneCatlowAlternate', 'genecatlow', last='20170302', adult=True, path='altd/%s.html'), # do not edit anything below since these entries are generated from # scripts/update_plugins.sh