1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-22 02:32:33 +01:00

[hotleak] fix faulty image URLs (#5915)

This commit is contained in:
Mike Fährmann 2024-08-01 12:02:23 +02:00
parent 7d15ea6274
commit 0432e05783
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

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