Fix LeastICouldDo (fixes ##253)

This commit is contained in:
Tobias Gruetzmacher 2022-12-27 23:06:27 +01:00
parent 11d3fd0bb7
commit abe15dbffb
No known key found for this signature in database

View file

@ -1,11 +1,11 @@
# SPDX-License-Identifier: MIT # SPDX-License-Identifier: MIT
# Copyright (C) 2004-2008 Tristan Seligmann and Jonathan Jacobs # Copyright (C) 2004-2008 Tristan Seligmann and Jonathan Jacobs
# Copyright (C) 2012-2014 Bastian Kleineidam # Copyright (C) 2012-2014 Bastian Kleineidam
# Copyright (C) 2015-2021 Tobias Gruetzmacher # Copyright (C) 2015-2022 Tobias Gruetzmacher
# Copyright (C) 2019-2020 Daniel Ring # Copyright (C) 2019-2020 Daniel Ring
from re import compile from re import compile
from ..scraper import _BasicScraper, _ParserScraper from ..scraper import ParserScraper, _BasicScraper, _ParserScraper
from ..helpers import bounceStarter, indirectStarter from ..helpers import bounceStarter, indirectStarter
from ..util import tagre from ..util import tagre
from .common import ComicControlScraper, WordPressScraper, WordPressNaviIn from .common import ComicControlScraper, WordPressScraper, WordPressNaviIn
@ -57,11 +57,11 @@ class LazJonesAndTheMayfieldRegulatorsSideStories(LazJonesAndTheMayfieldRegulato
return super(LazJonesAndTheMayfieldRegulators, self).getPrevUrl(url, data) return super(LazJonesAndTheMayfieldRegulators, self).getPrevUrl(url, data)
class LeastICouldDo(_ParserScraper): class LeastICouldDo(ParserScraper):
url = 'https://leasticoulddo.com/' url = 'https://leasticoulddo.com/'
stripUrl = url + 'comic/%s' stripUrl = url + 'comic/%s'
firstStripUrl = stripUrl % '20030210' firstStripUrl = stripUrl % '20030210'
imageSearch = '//div[@id="content-comic"]//img' imageSearch = '//img[d:class("comic")]/@data-src'
prevSearch = '//a[@rel="prev"]' prevSearch = '//a[@rel="prev"]'
latestSearch = '//a[@id="latest-comic"]' latestSearch = '//a[@id="latest-comic"]'
starter = indirectStarter starter = indirectStarter