From 734326106d324a6fb624f424e6ffdd71199de053 Mon Sep 17 00:00:00 2001 From: Techwolf Date: Tue, 6 Jun 2023 23:40:17 -0700 Subject: [PATCH] Fix PvPOnline --- dosagelib/plugins/p.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/dosagelib/plugins/p.py b/dosagelib/plugins/p.py index 29ef61897..41aad4a30 100644 --- a/dosagelib/plugins/p.py +++ b/dosagelib/plugins/p.py @@ -334,8 +334,10 @@ class PS238(_ParserScraper): class PvPOnline(ParserScraper): baseUrl = 'https://www.toonhoundstudios.com/' url = baseUrl + 'pvp/' - stripUrl = baseUrl + 'comic/%s/?sid=372' + stripUrl = baseUrl + 'comic/%s/' firstStripUrl = stripUrl % '19980504' imageSearch = '//div[@id="spliced-comic"]//img/@data-src-img' - prevSearch = '//div[d:class("comic-nav")]//a[d:class("prev")]' - help = 'Older pages need a Patreon subscription' + prevSearch = '//a[d:class("prev")]' + + def namer(self, imageUrl, pageUrl): + return 'pvp' + imageUrl.rsplit('/', 1)[-1]