From d889cb7d74dea75369c65affb2db23e2514ae609 Mon Sep 17 00:00:00 2001 From: Techwolf Date: Tue, 3 Mar 2020 22:03:07 -0800 Subject: [PATCH] Add TheDepths --- dosagelib/plugins/t.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/dosagelib/plugins/t.py b/dosagelib/plugins/t.py index 214e889d1..6fcc9be39 100644 --- a/dosagelib/plugins/t.py +++ b/dosagelib/plugins/t.py @@ -56,6 +56,22 @@ class TheClassMenagerie(_ParserScraper): endOfLife = True +class TheDepths(_WPWebcomic): + url = 'https://www.thedepthscomic.com/' + stripUrl = url + 'comic/%s/' + firstStripUrl = stripUrl % 'page-01' + imageSearch = '//div[contains(@class, "webcomic-media")]//img' + adult = True + + def namer(self, imageUrl, pageUrl): + # Fix inconsistent filenames + filename = imageUrl.rsplit('/', 1)[-1] + filename = filename.replace('pg', 'page_') + filename = filename.replace('page_', 'the_depths_') + filename = filename.replace('-web', '') + return filename + + class TheDevilsPanties(_WPNavi): url = 'https://thedevilspanties.com/' stripUrl = url + 'archives/%s'