Parse HubURL from Atom

This commit is contained in:
Peter Stuifzand 2018-05-23 22:40:44 +02:00
parent 6b66e5d548
commit 73591b81ca

4
vendor/rss/atom.go vendored
View File

@ -23,7 +23,9 @@ func parseAtom(data []byte) (*Feed, error) {
for _, link := range feed.Link { for _, link := range feed.Link {
if link.Rel == "alternate" || link.Rel == "" { if link.Rel == "alternate" || link.Rel == "" {
out.Link = link.Href out.Link = link.Href
break }
if link.Rel == "hub" {
out.HubURL = link.Href
} }
} }
out.Image = feed.Image.Image() out.Image = feed.Image.Image()