Get enclosures in body
Former-commit-id: 54036d076a334394bc6e7b1f2071ce92bef96325
This commit is contained in:
@@ -47,6 +47,9 @@ func newItem(i *gofeed.Item, contentFilter string) (*Item, error) {
|
||||
}
|
||||
item.Content = string(b)
|
||||
}
|
||||
for _, enclosure := range i.Enclosures {
|
||||
item.Content += fmt.Sprintf(`<br><a href="%s">%s</a>`, enclosure.URL, enclosure.URL)
|
||||
}
|
||||
if unescaped, err := url.QueryUnescape(item.Content); err == nil {
|
||||
item.Content = unescaped
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user