Fix ToonHole
This commit is contained in:
parent
c2c1355426
commit
bd73584ba9
1 changed files with 10 additions and 8 deletions
|
@ -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):
|
||||||
|
|
Loading…
Reference in a new issue