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:
parent
6e23c0da09
commit
c0a1241648
@ -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(".")
|
||||
|
Loading…
Reference in New Issue
Block a user