Added comments

This commit is contained in:
Eduard Urbach 2017-11-22 13:04:01 +01:00
parent 221797e944
commit a0f86a9246

View File

@ -50,9 +50,13 @@ func Get(ctx *aero.Context) string {
continue
}
// Since we validated the date earlier, we can ignore the error value.
airingDate, _ := time.Parse(time.RFC3339, episode.AiringDate.Start)
// Subtract from the starting date offset.
since := airingDate.Sub(now)
// Ignore entries in the past and more than 1 week away.
if since < 0 || since >= oneWeek {
continue
}