[mangafox] ensure download URLs have a scheme

pull/2278/head
Mike Fährmann 4 years ago
parent 8e3a324c91
commit 28d8541cb3
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -53,9 +53,9 @@ class MangafoxChapterExtractor(ChapterExtractor):
pnum = 1
while True:
url, pos = text.extract(page, '<img src="', '"')
yield url, None
yield text.ensure_http_scheme(url), None
url, pos = text.extract(page, ' src="', '"', pos)
yield url, None
yield text.ensure_http_scheme(url), None
pnum += 2
page = self.request("{}/{}.html".format(self.urlbase, pnum)).text

Loading…
Cancel
Save