Get enclosures in body
Former-commit-id: 54036d076a334394bc6e7b1f2071ce92bef96325master
parent
62913d1424
commit
94c2cd7c01
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue