0

bugfix screenshot for readme pages

This commit is contained in:
rafaelsideguide 2024-06-05 15:34:42 -03:00
parent 88a5286495
commit 164676c70a

View File

@ -337,6 +337,9 @@ export async function scrapSingleUrl(
switch (customScraperResult.scraper) { switch (customScraperResult.scraper) {
case "fire-engine": case "fire-engine":
customScrapedContent = await scrapWithFireEngine(customScraperResult.url, customScraperResult.waitAfterLoad, false, customScraperResult.pageOptions) customScrapedContent = await scrapWithFireEngine(customScraperResult.url, customScraperResult.waitAfterLoad, false, customScraperResult.pageOptions)
if (screenshot) {
customScrapedContent.screenshot = screenshot;
}
break; break;
case "pdf": case "pdf":
customScrapedContent = { html: await fetchAndProcessPdf(customScraperResult.url), screenshot } customScrapedContent = { html: await fetchAndProcessPdf(customScraperResult.url), screenshot }