🐛 Reduce the noise in the calendar by displaying only finished anime
This commit is contained in:
parent
8e4bf457fd
commit
abf3101dda
@ -50,6 +50,10 @@ func Get(ctx *aero.Context) string {
|
|||||||
|
|
||||||
// Add anime episodes to the days
|
// Add anime episodes to the days
|
||||||
for animeEpisodes := range arn.StreamAnimeEpisodes() {
|
for animeEpisodes := range arn.StreamAnimeEpisodes() {
|
||||||
|
if animeEpisodes.Anime().Status == "finished" {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
for _, episode := range animeEpisodes.Items {
|
for _, episode := range animeEpisodes.Items {
|
||||||
if !validator.IsValidDate(episode.AiringDate.Start) {
|
if !validator.IsValidDate(episode.AiringDate.Start) {
|
||||||
continue
|
continue
|
||||||
|
Loading…
Reference in New Issue
Block a user