[fapello] stop pagination on empty results (#7385)

This commit is contained in:
Mike Fährmann
2025-04-18 15:46:36 +02:00
parent 763bbfae8b
commit de727147e5

View File

@@ -72,10 +72,13 @@ class FapelloModelExtractor(Extractor):
if not page: if not page:
return return
url = None
for url in text.extract_iter(page, '<a href="', '"'): for url in text.extract_iter(page, '<a href="', '"'):
if url == "javascript:void(0);": if url == "javascript:void(0);":
continue continue
yield Message.Queue, url, data yield Message.Queue, url, data
if url is None:
return
num += 1 num += 1