From d39055e494d385da000250c89e9db2a6bfb6d513 Mon Sep 17 00:00:00 2001 From: Techwolf Date: Sat, 3 Aug 2019 16:58:11 -0700 Subject: [PATCH] Fix PvPOnline --- dosagelib/plugins/p.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/dosagelib/plugins/p.py b/dosagelib/plugins/p.py index 589b68404..c8843d022 100644 --- a/dosagelib/plugins/p.py +++ b/dosagelib/plugins/p.py @@ -272,10 +272,9 @@ class PS238(_ParserScraper): help = 'Index format: yyyy-mm-dd' -class PvPonline(_BasicScraper): - url = 'http://pvponline.com/comic' +class PvPOnline(_ParserScraper): + url = 'http://pvponline.com/comic/' stripUrl = url + '%s' - imageSearch = compile(tagre("img", "src", r'(http://s3[^"]+\.amazonaws\.com/pvponlinenew/img/comic/\d+/\d+/pvp[^"]+\.jpg)')) - prevSearch = compile(tagre("a", "href", r'(/comic/[^"]+)', - after="left divider")) - help = 'Index format: yyyy/mm/dd/stripname' + firstStripUrl = stripUrl % 'mon-may-04' + imageSearch = '//section[@class="comic-art"]/img' + prevSearch = '//div[contains(@class, "comic-nav")]/a[contains(text(), "Prev")]'