From 1def5739b1cbe394781d4de0dee816ac45fa260f Mon Sep 17 00:00:00 2001 From: Techwolf Date: Sat, 6 Jul 2019 20:01:17 -0700 Subject: [PATCH] Add Tamberlane --- dosagelib/plugins/t.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/dosagelib/plugins/t.py b/dosagelib/plugins/t.py index f588d7734..f33070dbb 100644 --- a/dosagelib/plugins/t.py +++ b/dosagelib/plugins/t.py @@ -25,6 +25,20 @@ class TalesOfTheQuestor(_ParserScraper): prevSearch = ('//a[@rel="prev"]', '//a[@title="Tales of the Questor"]') +class Tamberlane(_ParserScraper): + baseUrl = 'https://www.tamberlanecomic.com/' + url = baseUrl + 'latest/' + stripUrl = baseUrl + 'tamberlane/%s/' + firstStripUrl = stripUrl % 'page-1' + imageSearch = '//div[@class="webcomic-image"]//img' + prevSearch = '//a[contains(@class, "previous-webcomic-link")]' + + def namer(self, imageUrl, pageUrl): + # Fix inconsistent filenames + filename = imageUrl.rsplit('/', 1)[-1] + return filename.replace('ai4zCWaA', 'Page_152') + + class TheBrads(_ParserScraper): url = 'http://bradcolbow.com/archive/' imageSearch = '//div[%s]//img' % xpath_class('entry')