commit
87efb1906c
7
atom.go
7
atom.go
|
@ -131,6 +131,13 @@ func (this *Feed) readAtom(doc *xmlx.Document) (err error) {
|
|||
i.Content.Text = tn.Value
|
||||
}
|
||||
|
||||
if tn = item.SelectNode(ns, "author"); tn != nil {
|
||||
i.Author = Author{}
|
||||
i.Author.Name = tn.S(ns, "name")
|
||||
i.Author.Uri = tn.S(ns, "uri")
|
||||
i.Author.Email = tn.S(ns, "email")
|
||||
}
|
||||
|
||||
ch.Items = append(ch.Items, i)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue