From 545a67111e87c1501912281bde19e994db5059e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damjan=20Ko=C5=A1ir?= Date: Mon, 1 Jun 2015 15:15:34 +1200 Subject: [PATCH] fixed Alice --- dosagelib/plugins/a.py | 9 --------- dosagelib/plugins/comicpress.py | 1 + 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/dosagelib/plugins/a.py b/dosagelib/plugins/a.py index 8b954f38a..b72b0a053 100644 --- a/dosagelib/plugins/a.py +++ b/dosagelib/plugins/a.py @@ -122,15 +122,6 @@ class ALessonIsLearned(_BasicScraper): help = 'Index format: nnn' -class Alice(_BasicScraper): - url = 'http://alice.alicecomics.com/' - rurl = escape(url) - stripUrl = url + '%s/' - imageSearch = compile(tagre("img", "src", r'(%swp-content/uploads/\d+/\d+/\d+-\d+-\d+[^"]+)' % rurl)) - prevSearch = compile(tagre("a", "href", r'(%salicecomics/[^"]+)' % rurl, after="previous")) - help = 'Index format: name' - - class AlienLovesPredator(_BasicScraper): url = 'http://alienlovespredator.com/' stripUrl = url + '%s/' diff --git a/dosagelib/plugins/comicpress.py b/dosagelib/plugins/comicpress.py index 145d290ea..0198ddb9b 100644 --- a/dosagelib/plugins/comicpress.py +++ b/dosagelib/plugins/comicpress.py @@ -23,6 +23,7 @@ def add(name, url, firstUrl=None, starter=None, lang=None): add('1997', 'http://1977thecomic.com/') +add('Alice', 'http://www.alicecomics.com/', starter=indirectStarter('http://www.alicecomics.com/','//a[text()="Latest Alice!"]')) add('Amya', 'http://www.amyachronicles.com/') add('AxeCop', 'http://axecop.com/comic/season-two/') add('Bardsworth','http://www.bardsworth.com/')