[warosu] Handle missing images in the extractor by checking hostname

This commit is contained in:
NecRaul
2025-06-20 09:34:49 +04:00
parent 4f7a0e5d02
commit 3c85032b9b

View File

@@ -39,7 +39,7 @@ class WarosuThreadExtractor(Extractor):
yield Message.Directory, data
for post in posts:
if "image" in post:
if "image" in post and "warosu" in post["image"]:
for key in ("w", "h", "no", "time", "tim"):
post[key] = text.parse_int(post[key])
dt = text.parse_timestamp(post["time"])