1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-24 19:52:32 +01:00

[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
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

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