Parse HubURL from Atom
This commit is contained in:
parent
6b66e5d548
commit
73591b81ca
4
vendor/rss/atom.go
vendored
4
vendor/rss/atom.go
vendored
|
@ -23,7 +23,9 @@ func parseAtom(data []byte) (*Feed, error) {
|
|||
for _, link := range feed.Link {
|
||||
if link.Rel == "alternate" || link.Rel == "" {
|
||||
out.Link = link.Href
|
||||
break
|
||||
}
|
||||
if link.Rel == "hub" {
|
||||
out.HubURL = link.Href
|
||||
}
|
||||
}
|
||||
out.Image = feed.Image.Image()
|
||||
|
|
Loading…
Reference in New Issue
Block a user