From 70dc4ce91155691cd05545351145053904a4362a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Wed, 24 Aug 2022 22:10:01 +0200 Subject: [PATCH] [skeb] ignore article images with empty URL https://github.com/mikf/gallery-dl/commit/8cf5981ded6031b0e792ad5a01fad55634ccd8cf#commitcomment-81980633 --- gallery_dl/extractor/skeb.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/gallery_dl/extractor/skeb.py b/gallery_dl/extractor/skeb.py index 7b4ce665..0b8eb3c2 100644 --- a/gallery_dl/extractor/skeb.py +++ b/gallery_dl/extractor/skeb.py @@ -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"