[livedoor] force https:// for image URLs

This commit is contained in:
Mike Fährmann
2019-12-03 16:14:05 +01:00
parent 6e23c0da09
commit c0a1241648

View File

@@ -64,7 +64,7 @@ class LivedoorExtractor(Extractor):
if not src:
continue
if "://livedoor.blogimg.jp/" in src:
url = src.replace("-s.", ".")
url = src.replace("http:", "https:", 1).replace("-s.", ".")
else:
url = text.urljoin(self.root, src)
name, _, ext = url.rpartition("/")[2].rpartition(".")