From d8ac47f38638a1a4ce623e11d8941ba36bc3b41a Mon Sep 17 00:00:00 2001 From: Techwolf Date: Sat, 24 Aug 2019 20:56:41 -0700 Subject: [PATCH] Add FurPiled --- dosagelib/plugins/f.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/dosagelib/plugins/f.py b/dosagelib/plugins/f.py index 7b84a5e03..9fa85d343 100644 --- a/dosagelib/plugins/f.py +++ b/dosagelib/plugins/f.py @@ -202,6 +202,23 @@ class FunInJammies(_BasicScraper): help = 'Index format: n (unpadded)' +class FurPiled(_ParserScraper): + stripUrl = 'https://web.archive.org/web/20160404074145/http://www.liondogworks.com/images/fp-%03d.jpg' + url = stripUrl % 427 + firstStripUrl = stripUrl % 1 + + def getPrevUrl(self, url, data): + # Skip missing pages + nextStrip = int(url.rsplit('/', 1)[-1].split('.', 1)[0].replace('fp-', '')) - 1 + if nextStrip in [407, 258, 131, 110, 97, 31]: + nextStrip = nextStrip - 1 + return self.stripUrl % nextStrip + + def fetchUrls(self, url, data, urlSearch): + # URLs are direct links to images + return [url] + + class FurthiaHigh(_ParserScraper): url = 'http://furthiahigh.concessioncomic.com/' stripUrl = url + 'index.php?pid=%s'