From f20df8b69248682c20a8a51eb8de886327fa572a Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Thu, 25 Apr 2013 20:46:05 +0200 Subject: [PATCH] Added Curtailed. --- doc/changelog.txt | 2 +- dosagelib/plugins/c.py | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/doc/changelog.txt b/doc/changelog.txt index 3224368b0..16107de05 100644 --- a/doc/changelog.txt +++ b/doc/changelog.txt @@ -1,7 +1,7 @@ Dosage 2.2 (released xx.xx.2013) Features: -- comic: Added ARedTailsDream, Carciphona. +- comic: Added ARedTailsDream, Carciphona, Curtailed. Patch by Dirk Reiners Changes: diff --git a/dosagelib/plugins/c.py b/dosagelib/plugins/c.py index 090b4ad1a..d7e806fe3 100644 --- a/dosagelib/plugins/c.py +++ b/dosagelib/plugins/c.py @@ -390,6 +390,17 @@ class CucumberQuest(_BasicScraper): help = 'Index format: stripname' +class Curtailed(_BasicScraper): + description = u'' + url = 'http://curtailedcomic.com/' + stripUrl = url + '%s/' + firstStripUrl = stripUrl % '2012/04/08/sneeze' + rurl = escape(url) + imageSearch = compile(tagre("img", "src", r'(%scomics/[^"]*)' % rurl)) + prevSearch = compile(tagre("a", "href", r'(%s\d{4}/[^"]*)' % rurl, after="navi-prev")) + help = 'Index format: yyyy/mm/dd/stripname' + + class Curvy(_BasicScraper): description = u'An erotic sci-fi adventure comic for adults.' url = 'http://www.c.urvy.org/'