Fix AlphaLuna

This commit is contained in:
Techwolf 2019-06-23 22:24:20 -07:00 committed by Tobias Gruetzmacher
parent 6cfde34663
commit c9e3923442

View file

@ -146,24 +146,22 @@ class AllTheGrowingThings(_BasicScraper):
help = 'Index format: yyyy/mm/dd/strip-name' help = 'Index format: yyyy/mm/dd/strip-name'
class AlphaLuna(_BasicScraper): class AlphaLuna(_ParserScraper):
url = 'http://www.alphaluna.net/' url = 'https://alphaluna.net/'
stripUrl = url + 'issue-%s/' stripUrl = url + 'comic/%s/'
firstStripUrl = stripUrl % '1/cover' firstStripUrl = stripUrl % 'issue-1-cover'
imageSearch = compile(tagre("a", "href", imageSearch = '//main[@id="comic"]//img'
r'[^"]*/(?:issue-|support/upcoming)[^"]+') + prevSearch = '//a[@rel="prev"]'
tagre("img", "src", r'([^"]*/PAGINAS/[^"]+)'))
prevSearch = compile(tagre("a", "href", r'([^"]+)') +
tagre("img", "alt", "Prev"))
help = 'Index format: issue/page (e.g. 4/05)'
class AlphaLunaSpanish(AlphaLuna): class AlphaLunaSpanish(_ParserScraper):
name = 'AlphaLuna/Spanish' name = 'AlphaLuna/Spanish'
lang = 'es' lang = 'es'
url = 'http://alphaluna.net/spanish/' url = 'https://alphaluna.net/spanish/'
stripUrl = url + 'issue-%s/' stripUrl = url + 'comic/%s/'
firstStripUrl = stripUrl % '1/portada' firstStripUrl = stripUrl % 'issue-1-cover'
imageSearch = '//main[@id="comic"]//img'
prevSearch = '//a[@rel="prev"]'
class Altermeta(_ParserScraper): class Altermeta(_ParserScraper):