Fix NonPlayerCharacter

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

View file

@ -5,7 +5,7 @@
# Copyright (C) 2019-2020 Daniel Ring # Copyright (C) 2019-2020 Daniel Ring
from re import compile, escape from re import compile, escape
from ..scraper import _BasicScraper, _ParserScraper from ..scraper import ParserScraper, _BasicScraper, _ParserScraper
from ..helpers import indirectStarter, bounceStarter from ..helpers import indirectStarter, bounceStarter
from ..util import tagre from ..util import tagre
from .common import ComicControlScraper, WordPressScraper, WordPressNavi, WordPressWebcomic from .common import ComicControlScraper, WordPressScraper, WordPressNavi, WordPressWebcomic
@ -176,13 +176,13 @@ class NoNeedForBushido(_ParserScraper):
help = 'Index format: nnn' help = 'Index format: nnn'
class NonPlayerCharacter(_ParserScraper): class NonPlayerCharacter(ParserScraper):
url = 'https://www.lfg.co/' url = 'https://www.lfg.co/'
stripUrl = url + 'npc/tale/%s/' stripUrl = url + 'npc/comic/%s/'
firstStripUrl = stripUrl % '1-1' firstStripUrl = stripUrl % '1-1'
imageSearch = '//div[@id="comic-img"]//img' imageSearch = '//div[@id="comic-img"]//img'
prevSearch = '//a[@class="comic-nav-prev"]' prevSearch = '//a[@class="comic-nav-prev"]'
latestSearch = '//div[@id="feature-npc-footer"]/a[contains(@href, "npc/tale/")]' latestSearch = '//div[@id="feature-npc-footer"]/a[contains(@href, "npc/comic/")]'
starter = indirectStarter starter = indirectStarter
def namer(self, imageUrl, pageUrl): def namer(self, imageUrl, pageUrl):