From 4965e0ce09d8ccec4be137ee15dd3d3b4b2a097e Mon Sep 17 00:00:00 2001 From: Techwolf Date: Wed, 7 Jun 2023 00:20:53 -0700 Subject: [PATCH] Add Shifters/TheBeastWithin --- dosagelib/plugins/s.py | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/dosagelib/plugins/s.py b/dosagelib/plugins/s.py index 8e4f74a66..131873281 100644 --- a/dosagelib/plugins/s.py +++ b/dosagelib/plugins/s.py @@ -231,6 +231,45 @@ class ShiftersOnGossamerWings(Shifters): firstStripUrl = stripUrl % 'on-gossamer-wings-cover' +class ShiftersTheBeastWithin(Shifters): + name = 'Shifters/TheBeastWithin' + baseUrl = 'https://shiftersonline.com/' + url = baseUrl + 'series/shifters-the-beast-within/' + stripUrl = baseUrl + 'comic/%s/' + firstStripUrl = stripUrl % 'awakenings-pg-1' + endOfLife = True + + def namer(self, imageUrl, pageUrl): + filename = pageUrl.rsplit('/', 2)[1] + '.' + imageUrl.rsplit('.', 1)[-1] + if filename.startswith('the-company-of-dragons'): + filename = 'in-' + filename + # Prepend chapter number to filename + chapters = [ + 'awakenings', + 'lifting-the-veil', + 'tears-of-blood', + 'on-the-lam', + 'shades-of-intrigue', + 'catfight', + 'out-of-control', + 'damage-control', + 'wolfs-clothing', + 'strange-dreams', + 'blood-bonds', + 'the-other-team', + 'get-ferrah', + 'the-price-of-power', + 'dogfight', + 'surfacing', + 'in-the-company-of-dragons', + 'filler', + ] + for chapter in chapters: + if filename.startswith(chapter): + filename = 'chapter-' + str(chapters.index(chapter) + 1) + '-' + filename + return filename + + class ShipInABottle(WordPressScraper): url = 'http://shipinbottle.pepsaga.com/' stripUrl = url + '?p=%s'