From 51d84131ebb778d2da970cdec729656193221aa2 Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Thu, 25 Apr 2013 20:37:27 +0200 Subject: [PATCH] Added ARedTailsDream --- doc/changelog.txt | 4 ++++ dosagelib/plugins/a.py | 12 ++++++++++++ 2 files changed, 16 insertions(+) diff --git a/doc/changelog.txt b/doc/changelog.txt index f5b27e726..52c6e0e3a 100644 --- a/doc/changelog.txt +++ b/doc/changelog.txt @@ -1,6 +1,10 @@ Dosage 2.2 (released xx.xx.2013) Features: +- comic: Added ARedTailsDream. + Patch by Dirk Reiners + +Changes: - cmdline: Ignore trailing '/' at end of comic names. Useful when using shell completion to pick comics. Patch by Dirk Reiners. diff --git a/dosagelib/plugins/a.py b/dosagelib/plugins/a.py index df792c10b..c45ae077b 100644 --- a/dosagelib/plugins/a.py +++ b/dosagelib/plugins/a.py @@ -302,6 +302,18 @@ class AppleGeeks(_BasicScraper): help = 'Index format: n (unpadded)' +class ARedTailsDream(_BasicScraper): + description = u"Finnish mythology meets teen boy and his dog" + baseUrl = 'http://www.minnasundberg.fi/' + stripUrl = baseUrl + 'comic/page%s.php' + firstStripUrl = stripUrl % '00' + url = baseUrl + 'comic/recent.php' + imageSearch = compile(tagre('img', 'src', r'(chapter.+?/eng[^"]*)')) + prevSearch = compile(tagre('a', 'href', r'(page\d+\.php)') + + tagre("img", "src", r'.*?aprev.*?')) + help = 'Index format: nn' + + class ASofterWorld(_BasicScraper): url = 'http://www.asofterworld.com/' stripUrl = url + 'index.php?id=%s'