differentiate between published and updated
This commit is contained in:
parent
5576b8d83e
commit
caca5df203
3
atom.go
3
atom.go
|
@ -56,7 +56,8 @@ func (this *Feed) readAtom(doc *xmlx.Document) (err error) {
|
||||||
i = new(Item)
|
i = new(Item)
|
||||||
i.Title = item.S(ns, "title")
|
i.Title = item.S(ns, "title")
|
||||||
i.Id = item.S(ns, "id")
|
i.Id = item.S(ns, "id")
|
||||||
i.PubDate = item.S(ns, "updated")
|
i.PubDate = item.S(ns, "published")
|
||||||
|
i.Updated = item.S(ns, "updated")
|
||||||
i.Description = item.S(ns, "summary")
|
i.Description = item.S(ns, "summary")
|
||||||
|
|
||||||
links := item.SelectNodes(ns, "link")
|
links := item.SelectNodes(ns, "link")
|
||||||
|
|
Loading…
Reference in New Issue