aboutsummaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/zerochan.py
diff options
context:
space:
mode:
Diffstat (limited to 'gallery_dl/extractor/zerochan.py')
-rw-r--r--gallery_dl/extractor/zerochan.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gallery_dl/extractor/zerochan.py b/gallery_dl/extractor/zerochan.py
index 3341594..fca8911 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, '<ul id="thumbs', '</ul>')
extr = text.extract_from(thumbs)