Update for PVP Online (#249, fixes #247)

* New Domain

Co-authored-by: Tobias Gruetzmacher <tobias-git@23.gs>
This commit is contained in:
erpbridge 2022-12-05 18:40:29 -05:00 committed by GitHub
parent a94cc2b53b
commit 99ffb200fa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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 _BasicScraper, _ParserScraper, ParserScraper
from ..helpers import bounceStarter, queryNamer, indirectStarter from ..helpers import bounceStarter, queryNamer, indirectStarter
from ..util import tagre from ..util import tagre
from .common import ComicControlScraper, WordPressScraper, WordPressNavi from .common import ComicControlScraper, WordPressScraper, WordPressNavi
@ -331,9 +331,11 @@ class PS238(_ParserScraper):
help = 'Index format: yyyy-mm-dd' help = 'Index format: yyyy-mm-dd'
class PvPOnline(_ParserScraper): class PvPOnline(ParserScraper):
url = 'http://pvponline.com/comic/' baseUrl = 'https://www.toonhoundstudios.com/'
stripUrl = url + '%s' url = baseUrl + 'pvp/'
firstStripUrl = stripUrl % 'mon-may-04' stripUrl = baseUrl + 'comic/%s/?sid=372'
imageSearch = '//section[@class="comic-art"]/img' firstStripUrl = stripUrl % '19980504'
prevSearch = '//div[contains(@class, "comic-nav")]/a[contains(text(), "Prev")]' 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'