1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-26 12:42:29 +01:00

[4chanarchives] add end condition for 'board' extractor (#4012)

This commit is contained in:
Mike Fährmann 2023-05-06 20:52:45 +02:00
parent 1406f7125f
commit 7eadcbea70
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

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