mirror of
https://github.com/mikf/gallery-dl.git
synced 2024-11-22 10:42:34 +01:00
[hotleak] fix faulty image URLs (#5915)
This commit is contained in:
parent
7d15ea6274
commit
0432e05783
@ -23,6 +23,12 @@ class HotleakExtractor(Extractor):
|
||||
|
||||
def items(self):
|
||||
for post in self.posts():
|
||||
if self.type == "photo":
|
||||
post["url"] = (
|
||||
post["url"]
|
||||
.replace("/storage/storage/", "/storage/")
|
||||
.replace("_thumb.", ".")
|
||||
)
|
||||
post["_http_expected_status"] = (404,)
|
||||
yield Message.Directory, post
|
||||
yield Message.Url, post["url"], post
|
||||
|
Loading…
Reference in New Issue
Block a user