From 61deb8900b51277f1373e1f1f5747397193cb7e4 Mon Sep 17 00:00:00 2001 From: Techwolf Date: Wed, 7 Jun 2023 00:20:25 -0700 Subject: [PATCH] Fix Shifters --- dosagelib/plugins/s.py | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/dosagelib/plugins/s.py b/dosagelib/plugins/s.py index 9de02edd2..a679d8da2 100644 --- a/dosagelib/plugins/s.py +++ b/dosagelib/plugins/s.py @@ -209,10 +209,18 @@ class Sheldon(_BasicScraper): help = 'Index format: yymmdd' -class Shifters(WordPressNavi): - url = 'http://shiftersonline.com/' - stripUrl = url + '%s/' - firstStripUrl = stripUrl % 'shifters-redux-promo' +class Shifters(ParserScraper): + baseUrl = 'https://shiftersonline.com/' + url = baseUrl + 'series/shifters-redux/' + stripUrl = baseUrl + 'comic/%s/' + firstStripUrl = stripUrl % 'chapter-1-pg-1' + imageSearch = '//div[@id="spliced-comic"]//span[@class="default-lang"]//img' + prevSearch = '//a[@class="previous-comic"]' + latestSearch = '//div[@id="comic-archive-list"]//a' + starter = indirectStarter + + def namer(self, imageUrl, pageUrl): + return pageUrl.rsplit('/', 2)[1] + '.' + imageUrl.rsplit('.', 1)[-1] class ShipInABottle(WordPressScraper):