Removes notification of new channels
This is going to be moved to the stateful Feed, this is yet to be implemented.
This commit is contained in:
parent
73442f806a
commit
d75037c0ab
6
feed.go
6
feed.go
|
@ -150,16 +150,10 @@ func (this *Feed) makeFeed(doc *xmlx.Document) (err error) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
chancount := len(this.Channels)
|
|
||||||
if err = this.buildFeed(doc); err != nil || len(this.Channels) == 0 {
|
if err = this.buildFeed(doc); err != nil || len(this.Channels) == 0 {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// Notify host of new channels
|
|
||||||
if chancount != len(this.Channels) && this.chanhandler != nil {
|
|
||||||
this.chanhandler(this, this.Channels[chancount:])
|
|
||||||
}
|
|
||||||
|
|
||||||
// reset cache timeout values according to feed specified values (TTL)
|
// reset cache timeout values according to feed specified values (TTL)
|
||||||
if this.EnforceCacheLimit && this.CacheTimeout < this.Channels[0].TTL {
|
if this.EnforceCacheLimit && this.CacheTimeout < this.Channels[0].TTL {
|
||||||
this.CacheTimeout = this.Channels[0].TTL
|
this.CacheTimeout = this.Channels[0].TTL
|
||||||
|
|
Loading…
Reference in New Issue