Fix ToonHole

This commit is contained in:
Tobias Gruetzmacher 2022-06-06 16:12:53 +02:00
parent c2c1355426
commit bd73584ba9

View file

@ -9,8 +9,8 @@ try:
except ImportError: except ImportError:
from cached_property import cached_property from cached_property import cached_property
from ..scraper import _BasicScraper, _ParserScraper from ..scraper import _BasicScraper, _ParserScraper, ParserScraper
from ..helpers import indirectStarter from ..helpers import indirectStarter, joinPathPartsNamer
from ..util import tagre from ..util import tagre
from .common import (ComicControlScraper, WordPressScraper, WordPressSpliced, from .common import (ComicControlScraper, WordPressScraper, WordPressSpliced,
WordPressNavi, WordPressWebcomic) WordPressNavi, WordPressWebcomic)
@ -280,12 +280,14 @@ class TinyDickAdventures(_ParserScraper):
return page + '.' + ext return page + '.' + ext
class ToonHole(WordPressScraper): class ToonHole(ParserScraper):
url = 'http://toonhole.com/' url = 'https://toonhole.com/'
firstStripUrl = url + 'comic/toon-hole-coming-soon-2010/' firstStripUrl = url + '2010/01/smart-questions-get-smart-answers/'
imageSearch = '//img[d:class("wp-post-image")]'
def shouldSkipUrl(self, url, data): prevSearch = '//a[@rel="prev"]'
return url in (self.url + "comic/if-game-of-thrones-was-animated/",) latestSearch = '//a[@rel="bookmark"]'
starter = indirectStarter
namer = joinPathPartsNamer((), (-3, -2, -1))
class TrippingOverYou(_BasicScraper): class TrippingOverYou(_BasicScraper):