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 {
|
||||
codeGenList = strings.Split(codeGenPatterns, ",")
|
||||
}
|
||||
if cfg != nil && len(cfg.Ignore) > 0 {
|
||||
ignoreList = cfg.Ignore
|
||||
if cfg != nil && cfg.IgnorePatterns != nil && len(cfg.IgnorePatterns) > 0 {
|
||||
ignoreList = cfg.IgnorePatterns
|
||||
} else {
|
||||
ignoreList = strings.Split(ignorePatterns, ",")
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user