Fix AlphaLuna

This commit is contained in:
Techwolf 2023-06-06 21:00:32 -07:00 committed by Tobias Gruetzmacher
parent 10733c1512
commit 4109adaa2a
No known key found for this signature in database

View file

@ -6,7 +6,7 @@
from re import compile, escape, MULTILINE from re import compile, escape, MULTILINE
from ..util import tagre from ..util import tagre
from ..scraper import BasicScraper, _BasicScraper, _ParserScraper from ..scraper import BasicScraper, ParserScraper, _BasicScraper, _ParserScraper
from ..helpers import regexNamer, bounceStarter, indirectStarter from ..helpers import regexNamer, bounceStarter, indirectStarter
from .common import WordPressScraper, WordPressNavi, WordPressWebcomic from .common import WordPressScraper, WordPressNavi, WordPressWebcomic
@ -166,18 +166,18 @@ class AllTheGrowingThings(WordPressScraper):
endOfLife = True endOfLife = True
class AlphaLuna(_ParserScraper): class AlphaLuna(ParserScraper):
url = 'https://alphaluna.net/' url = 'https://alphalunacomic.net/'
stripUrl = url + 'comic/%s/' stripUrl = url + 'comic/%s/'
firstStripUrl = stripUrl % 'issue-1-cover' firstStripUrl = stripUrl % 'issue-1-cover'
imageSearch = '//main[@id="comic"]//img' imageSearch = '//main[@id="comic"]//img'
prevSearch = '//a[@rel="prev"]' prevSearch = '//a[@rel="prev"]'
class AlphaLunaSpanish(_ParserScraper): class AlphaLunaSpanish(ParserScraper):
name = 'AlphaLuna/Spanish' name = 'AlphaLuna/Spanish'
lang = 'es' lang = 'es'
url = 'https://alphaluna.net/spanish/' url = 'https://alphalunacomic.net/spanish/'
stripUrl = url + 'comic/%s/' stripUrl = url + 'comic/%s/'
firstStripUrl = stripUrl % 'issue-1-cover' firstStripUrl = stripUrl % 'issue-1-cover'
imageSearch = '//main[@id="comic"]//img' imageSearch = '//main[@id="comic"]//img'