Fix Altermeta

This commit is contained in:
Techwolf 2019-06-23 22:28:30 -07:00 committed by Tobias Gruetzmacher
parent 2916b39c98
commit 6cfde34663

View file

@ -166,15 +166,19 @@ class AlphaLunaSpanish(AlphaLuna):
firstStripUrl = stripUrl % '1/portada'
class Altermeta(_BasicScraper):
class Altermeta(_ParserScraper):
url = 'http://altermeta.net/'
rurl = escape(url)
stripUrl = url + 'archive.php?comic=%s'
firstStripUrl = stripUrl % '0'
imageSearch = compile(r'<img src="(comics/[^"]+)" />')
prevSearch = compile(r'<a href="([^"]+)"><img src="%stemplate/default/images/sasha/back\.png' % rurl)
imageSearch = '//img[contains(@src, "comics/")]'
prevSearch = '//a[./img[contains(@src, "back")]]'
nextSearch = '//a[./img[contains(@src, "forward")]]'
starter = bounceStarter
help = 'Index format: n (unpadded)'
def namer(self, imageUrl, pageUrl):
return pageUrl.rsplit('=', 1)[-1] + '_' + imageUrl.rsplit('/', 1)[-1]
class AltermetaOld(Altermeta):
url = Altermeta.url + 'oldarchive/index.php'