Merge pull request #64 from ionDynamics/master
differentiate between published and updated in atom feeds
This commit is contained in:
commit
066500420e
2 changed files with 3 additions and 1 deletions
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")
|
||||||
|
|
1
item.go
1
item.go
|
@ -24,6 +24,7 @@ type Item struct {
|
||||||
Generator *Generator
|
Generator *Generator
|
||||||
Contributors []string
|
Contributors []string
|
||||||
Content *Content
|
Content *Content
|
||||||
|
Updated string
|
||||||
|
|
||||||
Extensions map[string]map[string][]Extension
|
Extensions map[string]map[string][]Extension
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue