mirror of
https://github.com/ultrasn0w/huso.git
synced 2025-12-13 17:29:54 +01:00
Get Anime cached
This commit is contained in:
5
ober.go
5
ober.go
@@ -185,7 +185,7 @@ func WatchPost(ctx *fasthttp.RequestCtx) {
|
||||
}
|
||||
|
||||
// iterate sent animes
|
||||
for _, anime := range animes {
|
||||
for i, anime := range animes {
|
||||
// check if anime is in season
|
||||
_, err = SearchSeason(anime.Anime)
|
||||
if err == nil {
|
||||
@@ -195,8 +195,7 @@ func WatchPost(ctx *fasthttp.RequestCtx) {
|
||||
addErrorToCtx(ctx, err)
|
||||
return
|
||||
}
|
||||
anime.Users = animeData.Users
|
||||
fmt.Printf("%+v\n", anime)
|
||||
animes[i].Users = animeData.Users
|
||||
}
|
||||
|
||||
// TODO
|
||||
|
||||
Reference in New Issue
Block a user