From 70e78a87dea8d086756f9a1eeff8c6cf9cd0003d Mon Sep 17 00:00:00 2001 From: Techwolf Date: Wed, 19 Jun 2019 20:05:32 -0700 Subject: [PATCH] Add CarryOn --- dosagelib/plugins/c.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/dosagelib/plugins/c.py b/dosagelib/plugins/c.py index ce94d13fe..bb1693243 100644 --- a/dosagelib/plugins/c.py +++ b/dosagelib/plugins/c.py @@ -36,6 +36,22 @@ class CaptainSNES(_BasicScraper): help = 'Index format: yyyy/mm/dd/nnn-stripname' +class CarryOn(_ParserScraper): + url = 'http://www.hirezfox.com/km/co/' + stripUrl = url + 'd/%s.html' + firstStripUrl = stripUrl % '20040701' + imageSearch = '//div[@class="strip"]/img' + prevSearch = '//a[text()="Previous Day"]' + multipleImagesPerStrip = True + + def namer(self, imageUrl, pageUrl): + # Fix filenames of early comics + filename = imageUrl.rsplit('/', 1)[-1] + if filename[0].isdigit(): + filename = 'co' + filename + return filename + + class CaseyAndAndy(_BasicScraper): url = 'http://www.galactanet.com/comic/' stripUrl = url + 'view.php?strip=%s'