[skeb] ignore article images with empty URL

8cf5981ded (commitcomment-81980633)
This commit is contained in:
Mike Fährmann
2022-08-24 22:10:01 +02:00
parent f362d4a3c7
commit 70dc4ce911

View File

@@ -107,10 +107,12 @@ class SkebExtractor(Extractor):
yield post
if self.article and "article_image_url" in resp:
post["content_category"] = "article"
post["file_id"] = "article"
post["file_url"] = resp["article_image_url"]
yield post
url = resp["article_image_url"]
if url:
post["content_category"] = "article"
post["file_id"] = "article"
post["file_url"] = url
yield post
for preview in resp["previews"]:
post["content_category"] = "preview"