|
|
|
@ -88,9 +88,6 @@ func check() {
|
|
|
|
|
log.Fatal("Unable to parse episode air time") |
|
|
|
|
continue |
|
|
|
|
} |
|
|
|
|
//fmt.Println("Airtime of ", airtime.Format("2006-01-02 3:04 pm"), " is after",
|
|
|
|
|
//hourAgo.Format("2006-01-02 3:04 pm"), airtime.After(hourAgo),
|
|
|
|
|
//"and before ", inHour.Format("2006-01-02 3:04 pm"), airtime.Before(inHour))
|
|
|
|
|
if airtime.After(hourAgo) && airtime.Before(inHour) { |
|
|
|
|
fmt.Println("Notifying of episode airing within one hour before or after now") |
|
|
|
|
database.SetEpisodeChecked(e.EpisodeId) |
|
|
|
|