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