Better fix
parent
34caf24f6c
commit
fedc958926
9
feed.go
9
feed.go
|
@ -35,13 +35,14 @@ func forwardLastFeed(url string) {
|
|||
return
|
||||
}
|
||||
|
||||
postAge = time.Now()
|
||||
log.Println("Post Age: ", postAge)
|
||||
|
||||
if b.PublishedParsed != nil {
|
||||
postAge = *b.PublishedParsed
|
||||
} else {
|
||||
} else if b.UpdatedParsed != nil {
|
||||
log.Println("Ops, no Published in the feed. Using Update Date")
|
||||
postAge = *b.UpdatedParsed
|
||||
} else {
|
||||
log.Println("No Published date or update date. This feed is crap, giving up")
|
||||
postAge = time.Now()
|
||||
}
|
||||
|
||||
log.Println("Post Age: ", postAge)
|
||||
|
|
Loading…
Reference in New Issue