Next season feature

This commit is contained in:
daru
2022-05-26 01:39:34 +02:00
parent 967a506461
commit af4a3d0239
7 changed files with 113 additions and 14 deletions

View File

@@ -114,6 +114,20 @@ func LangeArbeit() {
}
}
// next season data
nextSeason := GetNextSeasonString()
_, bytes, err = GetNextSeasonDataAll(nextSeason)
if err != nil {
color.Errorln(err.Error())
logOut.WriteError(err)
} else {
err = seasoncache.Set(nextSeason, bytes)
if err != nil {
color.Errorln(err.Error())
logOut.WriteError(err)
}
}
// refresh anime cache with watched
count := 0
animesUsers, err := ReadAnimeUsers()