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