From b5368b366aacfaa2db4f0b6ee17ca49629239bb1 Mon Sep 17 00:00:00 2001 From: Tobias Gruetzmacher Date: Wed, 4 Feb 2015 19:41:52 +0100 Subject: [PATCH] Merge Gaia(German), SandraAndWoo(German) into common base. This also fixes #97 by correcting the imageSearch regex. --- dosagelib/plugins/g.py | 20 -------------------- dosagelib/plugins/s.py | 23 ----------------------- dosagelib/plugins/sandraandwoo.py | 30 ++++++++++++++++++++++++++++++ 3 files changed, 30 insertions(+), 43 deletions(-) create mode 100644 dosagelib/plugins/sandraandwoo.py diff --git a/dosagelib/plugins/g.py b/dosagelib/plugins/g.py index 5f61cb4b3..2346b96f8 100644 --- a/dosagelib/plugins/g.py +++ b/dosagelib/plugins/g.py @@ -8,26 +8,6 @@ from ..scraper import _BasicScraper from ..helpers import indirectStarter from ..util import tagre -class Gaia(_BasicScraper): - description = u'Gaia, a story about the nature of reality, and the answer to Lilith?s simple, meek, world-shattering question: ?Will you come along??' - url = 'http://www.sandraandwoo.com/gaia/' - rurl = escape(url) - stripUrl = url + '%s/' - firstStripUrl = stripUrl % '2000/01/01/welcome-to-gaia/' - imageSearch = compile(tagre("img", "src", r'(%scomics/\d+-\d+-\d+-[^"]+)' % rurl)) - prevSearch = compile(tagre("a", "href", r'(%s\d+/\d+/\d+/[^"]+/)' % rurl, after="prev")) - help = 'Index format: yyyy/mm/dd/number-stripname' - -class GaiaGerman(_BasicScraper): - description = u'Gaia, eine Geschichte über das Wesen der Wirklichkeit und die Antwort auf Liliths einfache, bescheidene, welterschütternde Frage: ?Kommt ihr mit??' - url = 'http://www.sandraandwoo.com/gaiade/' - rurl = escape(url) - stripUrl = url + '%s/' - firstStripUrl = stripUrl % '2000/01/01/welcome-to-gaia/' - imageSearch = compile(tagre("img", "src", r'(%scomics/\d+-\d+-\d+-[^"]+)' % rurl)) - prevSearch = compile(tagre("a", "href", r'(%s\d+/\d+/\d+/[^"]+/)' % rurl, after="prev")) - help = 'Index format: yyyy/mm/dd/number-stripname' - lang = 'de' class Galaxion(_BasicScraper): description = u'Galaxion - Life. Love. Hyperspace.' diff --git a/dosagelib/plugins/s.py b/dosagelib/plugins/s.py index 0f980004b..977f46852 100644 --- a/dosagelib/plugins/s.py +++ b/dosagelib/plugins/s.py @@ -57,29 +57,6 @@ class SamAndFuzzy(_BasicScraper): prevSearch = compile(r'">