[mangafox] ensure download URLs have a scheme

This commit is contained in:
Mike Fährmann
2020-10-23 02:45:15 +02:00
parent 8e3a324c91
commit 28d8541cb3

View File

@@ -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