22 lines
356 B
Go
22 lines
356 B
Go
package fixers
|
|
|
|
import (
|
|
"strings"
|
|
|
|
"github.com/mmcdole/gofeed"
|
|
)
|
|
|
|
func opennetFixer(item *gofeed.Item) (string, string) {
|
|
newBody := &strings.Builder{}
|
|
|
|
for line := range strings.Lines(item.Description) {
|
|
if strings.HasPrefix(line, "Источник") {
|
|
continue
|
|
}
|
|
|
|
_, _ = newBody.WriteString(line)
|
|
}
|
|
|
|
return item.Title, newBody.String()
|
|
}
|