1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-22 18:53:21 +01:00

[senmanga] ensure download URLs have a scheme (#4235)

This commit is contained in:
Mike Fährmann 2023-06-27 13:45:51 +02:00
parent ccbc1a1d55
commit 260ff55e19
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -58,6 +58,12 @@ class SenmangaChapterExtractor(ChapterExtractor):
"manga": "Akabane Honeko no Bodyguard",
},
}),
# no http scheme ()
("https://raw.senmanga.com/amama-cinderella/3", {
"pattern": r"^https://kumacdn.club/image-new-2/a/amama-cinderella"
r"/chapter-3/.+\.jpg",
"count": 30,
}),
)
def __init__(self, match):
@ -82,7 +88,7 @@ class SenmangaChapterExtractor(ChapterExtractor):
def images(self, page):
return [
(url, None)
(text.ensure_http_scheme(url), None)
for url in text.extract_iter(
page, '<img class="picture" src="', '"')
]