mirror of https://git.keinpfusch.net/loweel/zorg
Better fix
This commit is contained in:
parent
34caf24f6c
commit
fedc958926
9
feed.go
9
feed.go
|
@ -35,13 +35,14 @@ func forwardLastFeed(url string) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
postAge = time.Now()
|
|
||||||
log.Println("Post Age: ", postAge)
|
|
||||||
|
|
||||||
if b.PublishedParsed != nil {
|
if b.PublishedParsed != nil {
|
||||||
postAge = *b.PublishedParsed
|
postAge = *b.PublishedParsed
|
||||||
} else {
|
} else if b.UpdatedParsed != nil {
|
||||||
|
log.Println("Ops, no Published in the feed. Using Update Date")
|
||||||
postAge = *b.UpdatedParsed
|
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)
|
log.Println("Post Age: ", postAge)
|
||||||
|
|
Loading…
Reference in New Issue