Removes new Item notification
This commit is contained in:
parent
d75037c0ab
commit
e345751986
5
atom.go
5
atom.go
|
@ -50,7 +50,6 @@ func (this *Feed) readAtom(doc *xmlx.Document) (err error) {
|
||||||
ch.Author.Email = tn.S("", "email")
|
ch.Author.Email = tn.S("", "email")
|
||||||
}
|
}
|
||||||
|
|
||||||
itemcount := len(ch.Items)
|
|
||||||
list = node.SelectNodes(ns, "entry")
|
list = node.SelectNodes(ns, "entry")
|
||||||
|
|
||||||
for _, item := range list {
|
for _, item := range list {
|
||||||
|
@ -99,10 +98,6 @@ func (this *Feed) readAtom(doc *xmlx.Document) (err error) {
|
||||||
|
|
||||||
ch.Items = append(ch.Items, i)
|
ch.Items = append(ch.Items, i)
|
||||||
}
|
}
|
||||||
|
|
||||||
if itemcount != len(ch.Items) && this.itemhandler != nil {
|
|
||||||
this.itemhandler(this, ch, ch.Items[itemcount:])
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
this.Channels = foundChannels
|
this.Channels = foundChannels
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue