From 286718950cf8b6a12dcf6bd233772d0f32d4233b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Sat, 17 Oct 2020 22:39:14 +0200 Subject: [PATCH] [mangahere] ensure download URLs have a scheme (fixes #1070) --- gallery_dl/extractor/mangahere.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/gallery_dl/extractor/mangahere.py b/gallery_dl/extractor/mangahere.py index 52cc6720..1d88275f 100644 --- a/gallery_dl/extractor/mangahere.py +++ b/gallery_dl/extractor/mangahere.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- -# Copyright 2015-2019 Mike Fährmann +# Copyright 2015-2020 Mike Fährmann # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as @@ -30,6 +30,10 @@ class MangahereChapterExtractor(MangahereBase, ChapterExtractor): "keyword": "7c98d7b50a47e6757b089aa875a53aa970cac66f", "content": "708d475f06893b88549cbd30df1e3f9428f2c884", }), + # URLs without HTTP scheme (#1070) + ("https://www.mangahere.cc/manga/beastars/c196/1.html", { + "pattern": "https://zjcdn.mangahere.org/.*", + }), ("http://www.mangahere.co/manga/dongguo_xiaojie/c003.2/"), ("http://m.mangahere.co/manga/dongguo_xiaojie/c003.2/"), ) @@ -65,9 +69,9 @@ class MangahereChapterExtractor(MangahereBase, ChapterExtractor): while True: url, pos = text.extract(page, '