implement slight efficiency gain in board.ie pagination

This commit is contained in:
2026-01-17 14:43:14 +00:00
parent 0523c1a091
commit b8ed409e04

View File

@@ -29,8 +29,11 @@ class BoardsAPI:
logger.debug(f"Processing page {current_page} for category {category}") logger.debug(f"Processing page {current_page} for category {category}")
for a in soup.select("a.threadbit-threadlink"): for a in soup.select("a.threadbit-threadlink"):
if len(urls) >= limit:
break
href = a.get("href") href = a.get("href")
if href and len(urls) < limit: if href:
urls.append(href) urls.append(href)
current_page += 1 current_page += 1