fixing CraftedFables

This commit is contained in:
Damjan Košir 2015-05-26 19:32:12 +12:00
parent 6efb79e7f6
commit 36c790fa4b
2 changed files with 3 additions and 12 deletions

View file

@ -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)

View file

@ -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/')