ComicsKingdom: Use more reliable source for full-size image (fixes #323)
This commit is contained in:
parent
5391b8518f
commit
2b7ca3f30c
1 changed files with 1 additions and 7 deletions
|
@ -1,15 +1,13 @@
|
|||
# SPDX-License-Identifier: MIT
|
||||
# SPDX-FileCopyrightText: © 2019 Tobias Gruetzmacher
|
||||
# SPDX-FileCopyrightText: © 2019 Thomas W. Littauer
|
||||
from urllib.parse import parse_qs, urlsplit
|
||||
|
||||
from ..helpers import indirectStarter
|
||||
from ..scraper import ParserScraper
|
||||
|
||||
|
||||
class ComicsKingdom(ParserScraper):
|
||||
partDiv = '//div[d:class("comic-reader-item")]'
|
||||
imageSearch = partDiv + '[1]//a[contains(@href, "/custom-framed-print/")]'
|
||||
imageSearch = '//meta[@property="og:image"]/@content'
|
||||
prevSearch = partDiv + '[2]/@data-link'
|
||||
starter = indirectStarter
|
||||
help = 'Index format: yyyy-mm-dd'
|
||||
|
@ -22,10 +20,6 @@ class ComicsKingdom(ParserScraper):
|
|||
if lang:
|
||||
self.lang = lang
|
||||
|
||||
def imageUrlModifier(self, url, data):
|
||||
"""Extract high-quality image URL from link"""
|
||||
return parse_qs(urlsplit(url).query)['img'][0]
|
||||
|
||||
def link_modifier(self, fromurl, tourl):
|
||||
return tourl.replace('//wp.', '//', 1)
|
||||
|
||||
|
|
Loading…
Reference in a new issue