From 5e123ae79ea73407ec2f8f61df6a027cf09d6500 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damjan=20Ko=C5=A1ir?= Date: Tue, 26 May 2015 23:43:15 +1200 Subject: [PATCH] fixed DarkWings (now available under the real name Eryl as well), added Ashes, Laiyu, NoMoreSavePoints and EasilyAmused --- dosagelib/plugins/comicpress.py | 14 ++++++++++++++ dosagelib/plugins/d.py | 10 ---------- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/dosagelib/plugins/comicpress.py b/dosagelib/plugins/comicpress.py index 0e12a7617..d2eee0e6b 100644 --- a/dosagelib/plugins/comicpress.py +++ b/dosagelib/plugins/comicpress.py @@ -57,3 +57,17 @@ for (name, starterXPath) in [ ('HijinksEnsuePhoto', '//h4[text()="Latest Fancy Photo Comic"]/..//a') ]: add(name, 'http://hijinksensue.com/', starter=indirectStarter('http://hijinksensue.com/', starterXPath)) + +# all comics on flowerlarkstudios +for (name, linkNumber) in [ + ('Ashes', 1), + ('Eryl', 3), + # this is a duplicate as it was under this name in previous versions of dosage + ('DarkWings', 3), + ('Laiyu', 5), + ('NoMoreSavePoints', 7), + ('EasilyAmused', 9) +]: + add(name, 'http://www.flowerlarkstudios.com/', + starter=indirectStarter('http://www.flowerlarkstudios.com/', + '(//div[@id="sidebar-left"]//a)[' + str(linkNumber) + ']')) diff --git a/dosagelib/plugins/d.py b/dosagelib/plugins/d.py index 52348d43e..9a46c8544 100644 --- a/dosagelib/plugins/d.py +++ b/dosagelib/plugins/d.py @@ -69,16 +69,6 @@ class DangerouslyChloe(_BasicScraper): help = 'Index format: name' -class DarkWings(_BasicScraper): - url = 'http://www.flowerlarkstudios.com/dark-wings/' - rurl = escape(url) - stripUrl = url + '%s/' - firstStripUrl = stripUrl % '2008/05/31/page-i' - imageSearch = compile(tagre("img", "src", r'(%scomics/[^"]+)' % rurl)) - prevSearch = compile(tagre("a", "href", r'(%s[^"]+)' % rurl, after="navi-prev")) - help = 'Index format: yyyy/mm/dd/page-nn-mm' - - class DarthsAndDroids(_BasicScraper): url = 'http://www.darthsanddroids.net/' stripUrl = url + 'episodes/%s.html'