From ae1c64bfedf6ddad094dbd0b47e9f8d50f347a93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Wed, 31 Jan 2024 22:46:57 +0200 Subject: [PATCH] Use scraper.textContent for TurnoffScraper --- src/scrapers/TurnoffScraper.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/scrapers/TurnoffScraper.ts b/src/scrapers/TurnoffScraper.ts index 351a7da..2188455 100644 --- a/src/scrapers/TurnoffScraper.ts +++ b/src/scrapers/TurnoffScraper.ts @@ -10,8 +10,9 @@ export class TurnoffScraper implements ScraperInterface { const document = scraper.createParser(content); let link = scraper.forceHttps( - document.querySelector("rss channel item guid")?.textContent, + scraper.textContent(document, "rss channel item guid") ); + if (!link) { return; }