From ae431828483234508347890df5f2d8e1582914a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Sat, 20 Sep 2025 08:38:51 +0200 Subject: [PATCH] [thehentaiworld] make post extraction non-fatal --- gallery_dl/extractor/thehentaiworld.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gallery_dl/extractor/thehentaiworld.py b/gallery_dl/extractor/thehentaiworld.py index c366f9c4..e3c7adbe 100644 --- a/gallery_dl/extractor/thehentaiworld.py +++ b/gallery_dl/extractor/thehentaiworld.py @@ -25,7 +25,13 @@ class ThehentaiworldExtractor(Extractor): def items(self): for url in self.posts(): - post = self._extract_post(url) + try: + post = self._extract_post(url) + except Exception as exc: + self.status |= 1 + self.log.warning("Failed to extract post %s (%s: %s)", + url, exc.__class__.__name__, exc) + continue if "file_urls" in post: urls = post["file_urls"]