[thehentaiworld] make post extraction non-fatal

This commit is contained in:
Mike Fährmann
2025-09-20 08:38:51 +02:00
parent 96ce1926a4
commit ae43182848

View File

@@ -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"]