Merge pull request #90 from soulcramer/Reduce_Calendar_Noise

🐛 Reduce the noise in the calendar
This commit is contained in:
Eduard Urbach 2018-02-06 14:44:50 +01:00 committed by GitHub
commit 30f782419a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,6 +50,10 @@ func Get(ctx *aero.Context) string {
// Add anime episodes to the days
for animeEpisodes := range arn.StreamAnimeEpisodes() {
if animeEpisodes.Anime().Status == "finished" {
continue
}
for _, episode := range animeEpisodes.Items {
if !validator.IsValidDate(episode.AiringDate.Start) {
continue