From 805befe40c8515a324c9310f4e3a085d1a5dcc73 Mon Sep 17 00:00:00 2001 From: Tobias Gruetzmacher Date: Sat, 28 May 2022 15:46:52 +0200 Subject: [PATCH] Fix PandyLand using archive.org --- dosagelib/plugins/p.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/dosagelib/plugins/p.py b/dosagelib/plugins/p.py index 96407b2ce..9a9733915 100644 --- a/dosagelib/plugins/p.py +++ b/dosagelib/plugins/p.py @@ -11,9 +11,15 @@ from ..util import tagre from .common import _ComicControlScraper, _WordPressScraper, _WPNavi -class PandyLand(_WordPressScraper): - url = 'http://pandyland.net/' - firstStripUrl = 'http://pandyland.net/1/' +class PandyLand(_ParserScraper): + url = ('https://web.archive.org/web/20200122163307/' + 'http:/pandyland.net/') + stripUrl = url + '%s' + firstStripUrl = stripUrl % '1' + imageSearch = '//div[d:class("comic")]/img' + prevSearch = '//a[contains(text(), "previous")]' + help = 'Index format: number' + endOfLife = True class ParadigmShift(_BasicScraper):