From 7eadcbea7014f1908adef2026fc495d15f7ee3b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Sat, 6 May 2023 20:52:45 +0200 Subject: [PATCH] [4chanarchives] add end condition for 'board' extractor (#4012) --- gallery_dl/extractor/4chanarchives.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gallery_dl/extractor/4chanarchives.py b/gallery_dl/extractor/4chanarchives.py index e5ccd256..041e6a35 100644 --- a/gallery_dl/extractor/4chanarchives.py +++ b/gallery_dl/extractor/4chanarchives.py @@ -130,7 +130,10 @@ class _4chanarchivesBoardExtractor(Extractor): url = "{}/board/{}/{}".format(self.root, self.board, pnum) page = self.request(url).text + thread = None for thread in text.extract_iter(page, needle, '"'): yield Message.Queue, thread, data + if thread is None: + return pnum += 1