From a9dc7a6f981030c9f90e5fdcb98d6e37befe1ae4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Mon, 16 Sep 2024 10:12:25 +0200 Subject: [PATCH] [deviantart] warn about empty journal texts (#5916) https://github.com/mikf/gallery-dl/issues/5916#issuecomment-2351069092 --- gallery_dl/extractor/deviantart.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gallery_dl/extractor/deviantart.py b/gallery_dl/extractor/deviantart.py index ea70b580..0027c4f8 100644 --- a/gallery_dl/extractor/deviantart.py +++ b/gallery_dl/extractor/deviantart.py @@ -284,6 +284,9 @@ class DeviantartExtractor(Extractor): html = journal["html"] shadow = SHADOW_TEMPLATE.format_map(thumbs[0]) if thumbs else "" + if not html: + self.log.warning("%s: Empty journal content", deviation["index"]) + if "css" in journal: css, cls = journal["css"], "withskin" elif html.startswith("