From 9c143f3c9c10701c3d2bf94960e591e058857015 Mon Sep 17 00:00:00 2001 From: Techwolf Date: Tue, 6 Jun 2023 21:00:58 -0700 Subject: [PATCH] Fix NonPlayerCharacter --- dosagelib/plugins/n.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dosagelib/plugins/n.py b/dosagelib/plugins/n.py index 8387bccf2..a4278fddf 100644 --- a/dosagelib/plugins/n.py +++ b/dosagelib/plugins/n.py @@ -5,7 +5,7 @@ # Copyright (C) 2019-2020 Daniel Ring from re import compile, escape -from ..scraper import _BasicScraper, _ParserScraper +from ..scraper import ParserScraper, _BasicScraper, _ParserScraper from ..helpers import indirectStarter, bounceStarter from ..util import tagre from .common import ComicControlScraper, WordPressScraper, WordPressNavi, WordPressWebcomic @@ -176,13 +176,13 @@ class NoNeedForBushido(_ParserScraper): help = 'Index format: nnn' -class NonPlayerCharacter(_ParserScraper): +class NonPlayerCharacter(ParserScraper): url = 'https://www.lfg.co/' - stripUrl = url + 'npc/tale/%s/' + stripUrl = url + 'npc/comic/%s/' firstStripUrl = stripUrl % '1-1' imageSearch = '//div[@id="comic-img"]//img' 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 def namer(self, imageUrl, pageUrl):