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

@@ -131,8 +131,8 @@ func runRollup() error {
} else { } else {
codeGenList = strings.Split(codeGenPatterns, ",") codeGenList = strings.Split(codeGenPatterns, ",")
} }
if cfg != nil && len(cfg.Ignore) > 0 { if cfg != nil && cfg.IgnorePatterns != nil && len(cfg.IgnorePatterns) > 0 {
ignoreList = cfg.Ignore ignoreList = cfg.IgnorePatterns
} else { } else {
ignoreList = strings.Split(ignorePatterns, ",") ignoreList = strings.Split(ignorePatterns, ",")
} }

View File

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