From 4f5994a2e14d8aedfac7ad0bd17839c777aa2eba Mon Sep 17 00:00:00 2001 From: Nulo Date: Thu, 4 Jan 2024 16:42:37 -0300 Subject: [PATCH] no volver a scrapear cosas salteadas --- scraper/scrap.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scraper/scrap.ts b/scraper/scrap.ts index 582bc12..55d94d2 100644 --- a/scraper/scrap.ts +++ b/scraper/scrap.ts @@ -34,7 +34,7 @@ export async function downloadList(path: string) { let res: ScrapResult = { type: "skipped" }; for (let attempts = 0; attempts < 3; attempts++) { res = await scrap(urlS); - if (res.type === "done") { + if (res.type === "done" || res.type === "skipped") { break; } }