fix(WebScraper/tryGetSitemap): deduplicate sitemap links list

This commit is contained in:
Gergő Móricz
2024-12-15 22:33:36 +01:00
parent 37f58efe45
commit e97ee4a4be
+1 -1
View File
@@ -210,7 +210,7 @@ export class WebCrawler {
} }
if (sitemapLinks.length > 0) { if (sitemapLinks.length > 0) {
let filteredLinks = this.filterLinks( let filteredLinks = this.filterLinks(
sitemapLinks, [...new Set(sitemapLinks)],
this.limit, this.limit,
this.maxCrawledDepth, this.maxCrawledDepth,
fromMap, fromMap,