From f71961acbc6bef27090526ca3e4aff30f02f9847 Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Tue, 9 Apr 2013 19:36:51 +0200 Subject: [PATCH] Added ExtraOrdinary. --- doc/changelog.txt | 3 ++- dosagelib/plugins/e.py | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/doc/changelog.txt b/doc/changelog.txt index 3107f34c3..71a9a6cf7 100644 --- a/doc/changelog.txt +++ b/doc/changelog.txt @@ -1,7 +1,8 @@ Dosage 2.0 (released xx.xx.2013) Features: -- comics: Added SnowFlakes, StuffNoOneToldMe and WebDesignerCOTW. +- comics: Added ExtraOrdinary, SnowFlakes, + StuffNoOneToldMe and WebDesignerCOTW. - comics: Added the --vote option to vote for popular comics. Changes: diff --git a/dosagelib/plugins/e.py b/dosagelib/plugins/e.py index 9bf8b2b18..9093bf0b1 100644 --- a/dosagelib/plugins/e.py +++ b/dosagelib/plugins/e.py @@ -154,6 +154,15 @@ class ExtraLife(_BasicScraper): help = 'Index format: stripname' +class ExtraOrdinary(_BasicScraper): + url = 'http://exocomics.com/' + stripUrl = url + '%s' + firstStripUrl = stripUrl % '01' + prevSearch = compile(tagre("a", "href", r'(http://www\.exocomics\.com/\d+)', before="prev")) + imageSearch = compile(tagre("img", "src", r'(http://www\.exocomics\.com/comics/comics/\d+\.[^"]+)')) + help = 'Index format: number' + + class EyeOfRamalach(_BasicScraper): url = 'http://theeye.katbox.net/' stripUrl = url + 'comic/%s/'