From 9aa0845b179d7bc5b29dc393a10a09269fd586bb Mon Sep 17 00:00:00 2001 From: Techwolf Date: Thu, 11 Jul 2019 00:10:21 -0700 Subject: [PATCH] Fix StandStillStaySilent --- dosagelib/plugins/s.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/dosagelib/plugins/s.py b/dosagelib/plugins/s.py index d8ac288cc..448eb9234 100644 --- a/dosagelib/plugins/s.py +++ b/dosagelib/plugins/s.py @@ -452,12 +452,16 @@ class SSDD(_ParserScraper): class StandStillStaySilent(_ParserScraper): - url = 'http://www.sssscomic.com/comic.php' - stripUrl = url + '?page=%s' - firstStripUrl = stripUrl % '1' + baseUrl = 'http://sssscomic.com/' + url = baseUrl + 'comic2.php' + stripUrl = baseUrl + 'comic%s.php?page=%s' + firstStripUrl = stripUrl % ('', '1') imageSearch = '//img[@class="comicnormal"]' - prevSearch = '//a[div[@id="navprev"]]' - help = 'Index Format: number' + prevSearch = '//a[./img[contains(@src, "nav_prev")]]' + + def namer(self, imageUrl, pageUrl): + chapter = '2' if ('adv2_comicpages' in imageUrl) else '1' + return '%s-%s' % (chapter, imageUrl.rsplit('/', 1)[-1].replace('page_', '')) class StarCrossdDestiny(_ParserScraper):