mirror of
https://git.keinpfusch.net/loweel/zorg
synced 2024-12-18 14:18:30 +01:00
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
|
||||
}
|
||||
|
||||
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
Block a user