refactor: Update field names and comment out undefined function call

This commit is contained in:
Arik Jones (aider)
2024-09-05 23:07:51 -05:00
parent 4caf6f5646
commit 876b2d8917
2 changed files with 7 additions and 6 deletions

View File

@@ -128,10 +128,11 @@ func extractAndConvertContent(urlStr string) (string, error) {
// Use the CSS locator from the config
cssLocator := cfg.Scrape.CSSLocator
if cssLocator != "" {
content, err = scraper.ExtractContentWithCSS(content, cssLocator)
if err != nil {
return "", fmt.Errorf("error extracting content with CSS selector: %v", err)
}
// TODO: Implement content extraction with CSS selector
// content, err = scraper.ExtractContentWithCSS(content, cssLocator)
// if err != nil {
// return "", fmt.Errorf("error extracting content with CSS selector: %v", err)
// }
}
// Create a new converter