[hotleak] fix faulty image URLs (#5915)
This commit is contained in:
@@ -23,6 +23,12 @@ class HotleakExtractor(Extractor):
|
|||||||
|
|
||||||
def items(self):
|
def items(self):
|
||||||
for post in self.posts():
|
for post in self.posts():
|
||||||
|
if self.type == "photo":
|
||||||
|
post["url"] = (
|
||||||
|
post["url"]
|
||||||
|
.replace("/storage/storage/", "/storage/")
|
||||||
|
.replace("_thumb.", ".")
|
||||||
|
)
|
||||||
post["_http_expected_status"] = (404,)
|
post["_http_expected_status"] = (404,)
|
||||||
yield Message.Directory, post
|
yield Message.Directory, post
|
||||||
yield Message.Url, post["url"], post
|
yield Message.Url, post["url"], post
|
||||||
|
|||||||
Reference in New Issue
Block a user