From 36c790fa4bc4b8272be3d56864fbcf19cb78f367 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damjan=20Ko=C5=A1ir?= Date: Tue, 26 May 2015 19:32:12 +1200 Subject: [PATCH] fixing CraftedFables --- dosagelib/plugins/c.py | 11 ----------- dosagelib/plugins/comicpress.py | 4 +++- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/dosagelib/plugins/c.py b/dosagelib/plugins/c.py index 5435d6d19..08ffa14e7 100755 --- a/dosagelib/plugins/c.py +++ b/dosagelib/plugins/c.py @@ -308,17 +308,6 @@ class CrimsonDark(_BasicScraper): help = 'Index format: n (unpadded)' -class CraftedFables(_BasicScraper): - url = 'http://www.craftedfables.com/' - baseUrl = 'http://www.caf-fiends.net/' - rurl = escape(baseUrl) - stripUrl = baseUrl + 'craftedfables/?p=%s' - imageSearch = compile(tagre("img", "src", r'(%scraftedfables/comics/[^"]+)' % rurl)) - prevSearch = compile(tagre("a", "href", r'(%scraftedfables/[^"]+)' % rurl) + - tagre("span", "class", r"prev")) - help = 'Index format: nnn' - - class CucumberQuest(_BasicScraper): url = 'http://cucumber.gigidigi.com/' rurl = escape(url) diff --git a/dosagelib/plugins/comicpress.py b/dosagelib/plugins/comicpress.py index 9cf58a46e..17e3d9f6a 100644 --- a/dosagelib/plugins/comicpress.py +++ b/dosagelib/plugins/comicpress.py @@ -9,7 +9,8 @@ def add(name, url, firstUrl=None, lang=None): imageSearch='//div[@id="comic"]//img', prevSearch=['//a[contains(text(), " Prev")]', "//a[contains(concat(' ', @class, ' '), ' navi-prev ')]", - "//a[contains(concat(' ', @class, ' '), ' navi-prev-in ')]"] + "//a[contains(concat(' ', @class, ' '), ' navi-prev-in ')]", + "//a[contains(concat(' ', @class, ' '), ' navi-previous ')]"] ) if lang: attrs['lang'] = lang @@ -24,6 +25,7 @@ add('BloodBound', 'http://bloodboundcomic.com/', 'comic/06112006/') add('BratHalla', 'http://brat-halla.com/') add('BroodHollow', 'http://broodhollow.chainsawsuit.com/', 'page/2012/10/06/book-1-curious-little-thing') add('Catena', 'http://catenamanor.com/') +add('CraftedFables', 'http://www.caf-fiends.net/comicpress/') add('CourtingDisaster', 'http://www.courting-disaster.com/', 'comic/courting-disaster-17/') add('Hipsters', 'http://www.hipsters-comic.com/', 'comic/hip01/') add('IDreamOfAJeanieBottle', 'http://jeaniebottle.com/')