Read author for atom item

This commit is contained in:
Chris Grindstaff 2013-03-27 16:05:18 -03:00
parent 07f688de02
commit c8e23415d1
1 changed files with 7 additions and 0 deletions

View File

@ -130,6 +130,13 @@ func (this *Feed) readAtom(doc *xmlx.Document) (err error) {
i.Content.Base = tn.S("xml", "base")
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)
}