From 4303b3ba9d4674ce4afbb3d22d8a0b900af77335 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Fri, 22 Aug 2025 16:10:43 +0200 Subject: [PATCH] [zerochan] expect 500 status code for HTML requests (#8097) --- gallery_dl/extractor/zerochan.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gallery_dl/extractor/zerochan.py b/gallery_dl/extractor/zerochan.py index 3341594e..fca89115 100644 --- a/gallery_dl/extractor/zerochan.py +++ b/gallery_dl/extractor/zerochan.py @@ -63,7 +63,7 @@ class ZerochanExtractor(BooruExtractor): def _parse_entry_html(self, entry_id): url = f"{self.root}/{entry_id}" - page = self.request(url).text + page = self.request(url, expected=(500,)).text try: jsonld = self._extract_jsonld(page) @@ -191,7 +191,7 @@ class ZerochanTagExtractor(ZerochanExtractor): metadata = self.config("metadata") while True: - page = self.request(url, params=params).text + page = self.request(url, params=params, expected=(500,)).text thumbs = text.extr(page, '