From abe15dbffb7ff64081d12976cd786b790856a142 Mon Sep 17 00:00:00 2001 From: Tobias Gruetzmacher Date: Tue, 27 Dec 2022 23:06:27 +0100 Subject: [PATCH] Fix LeastICouldDo (fixes ##253) --- dosagelib/plugins/l.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dosagelib/plugins/l.py b/dosagelib/plugins/l.py index 23ca17ea9..d37c721b9 100644 --- a/dosagelib/plugins/l.py +++ b/dosagelib/plugins/l.py @@ -1,11 +1,11 @@ # SPDX-License-Identifier: MIT # Copyright (C) 2004-2008 Tristan Seligmann and Jonathan Jacobs # Copyright (C) 2012-2014 Bastian Kleineidam -# Copyright (C) 2015-2021 Tobias Gruetzmacher +# Copyright (C) 2015-2022 Tobias Gruetzmacher # Copyright (C) 2019-2020 Daniel Ring from re import compile -from ..scraper import _BasicScraper, _ParserScraper +from ..scraper import ParserScraper, _BasicScraper, _ParserScraper from ..helpers import bounceStarter, indirectStarter from ..util import tagre from .common import ComicControlScraper, WordPressScraper, WordPressNaviIn @@ -57,11 +57,11 @@ class LazJonesAndTheMayfieldRegulatorsSideStories(LazJonesAndTheMayfieldRegulato return super(LazJonesAndTheMayfieldRegulators, self).getPrevUrl(url, data) -class LeastICouldDo(_ParserScraper): +class LeastICouldDo(ParserScraper): url = 'https://leasticoulddo.com/' stripUrl = url + 'comic/%s' firstStripUrl = stripUrl % '20030210' - imageSearch = '//div[@id="content-comic"]//img' + imageSearch = '//img[d:class("comic")]/@data-src' prevSearch = '//a[@rel="prev"]' latestSearch = '//a[@id="latest-comic"]' starter = indirectStarter