mirror of
https://github.com/tnypxl/rollup.git
synced 2025-12-15 15:03:17 +00:00
refactor: Update field names and comment out undefined function call
This commit is contained in:
@@ -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, ",")
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user