smaller changes and fixes

- fix the cloudflare challenge result if the last decimal places
  are zero (JS`s toFixed() removes trailing zeroes)
- fix downloading of kissmanga chapter-pages hosted on blogspot
  (accessing blogspot with "kissmanga.com" as referrer yields a 401)
- disable certificate validation for 'mangahere' tests
- update flickr test result
pull/86/head
Mike Fährmann 7 years ago
parent f6c95dccf9
commit d11fcf4804
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -63,7 +63,7 @@ def solve_jschl(url, page):
elif expr.startswith("a.value"):
solution += len(urllib.parse.urlsplit(url).netloc)
if ".toFixed(" in expr:
solution = "{:.10f}".format(solution)
solution = "{:.10f}".format(solution).rstrip("0")
return solution

@ -150,7 +150,7 @@ class FlickrGalleryExtractor(FlickrExtractor):
test = [(("https://www.flickr.com/photos/flickr/"
"galleries/72157681572514792/"), {
"url": "1e0e300fa5fe8c49ba5dfa7ccca0cb0da8a04f93",
"keyword": "29addd2523493cb3a83ea16c8c1439cbd2f2da97",
"keyword": "ba1f0e4bf5ee4e10071bdc272c19f015985cf055",
})]
def __init__(self, match):

@ -135,6 +135,7 @@ class KissmangaChapterExtractor(KissmangaBase, ChapterExtractor):
return self.parse_chapter_string(data)
def get_images(self, page):
self.session.headers["Referer"] = None
try:
key = self.build_aes_key(page)
return [

@ -69,6 +69,7 @@ class MangahereChapterExtractor(ChapterExtractor):
("http://www.mangahere.cc/manga/dongguo_xiaojie/c003.2/", {
"keyword": "0c263b83f803524baa8717d2b4d841617aa8d775",
"content": "dd8454469429c6c717cbc3cad228e76ef8c6e420",
"options": (("verify", False),),
}),
("http://www.mangahere.co/manga/dongguo_xiaojie/c003.2/", None),
("http://m.mangahere.co/manga/dongguo_xiaojie/c003.2/", None),

@ -89,8 +89,8 @@ class ReadcomiconlineIssueExtractor(ReadcomiconlineBase, ChapterExtractor):
"language": "English",
}
@staticmethod
def get_images(page):
def get_images(self, page):
self.session.headers["Referer"] = None
return [
(url, None)
for url in text.extract_iter(

@ -23,7 +23,7 @@ TRAVIS_SKIP = {
BROKEN = {
"imgyt", # "Name or service not known"
"loveisover", # "Name or service not known"
"mangahere", # invalid SSL cert
"pinterest", # access_token invalid ?
"puremashiro", # online reader down
}

Loading…
Cancel
Save