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:
parent
1406f7125f
commit
7eadcbea70
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user