Files

22 lines
356 B
Go
Raw Permalink Normal View History

2026-08-05 12:06:46 +05:00
package fixers
import (
"strings"
"github.com/mmcdole/gofeed"
)
func opennetFixer(item *gofeed.Item) (string, string) {
2026-08-05 12:06:46 +05:00
newBody := &strings.Builder{}
for line := range strings.Lines(item.Description) {
2026-08-05 12:06:46 +05:00
if strings.HasPrefix(line, "Источник") {
continue
}
_, _ = newBody.WriteString(line)
}
return item.Title, newBody.String()
2026-08-05 12:06:46 +05:00
}