diff --git a/benchmarks/Components_test.go b/benchmarks/Components_test.go index 514a1ac7..eb01f210 100644 --- a/benchmarks/Components_test.go +++ b/benchmarks/Components_test.go @@ -29,7 +29,6 @@ func BenchmarkRenderThread(b *testing.B) { func BenchmarkRenderAnimeList(b *testing.B) { user, _ := arn.GetUser("4J6qpK1ve") animeList := user.AnimeList() - animeList.PrefetchAnime() b.ReportAllocs() b.ResetTimer() diff --git a/pages/animelist/animelist.go b/pages/animelist/animelist.go index 71198c7c..463193dd 100644 --- a/pages/animelist/animelist.go +++ b/pages/animelist/animelist.go @@ -25,7 +25,6 @@ func Get(ctx *aero.Context) string { return ctx.Error(http.StatusNotFound, "Anime list not found", nil) } - animeList.PrefetchAnime() animeList.Sort() return ctx.HTML(components.ProfileAnimeLists(animeList.SplitByStatus(), animeList.User(), user, ctx.URI())) diff --git a/pages/animelist/status.go b/pages/animelist/status.go index 567fe1af..641efd3f 100644 --- a/pages/animelist/status.go +++ b/pages/animelist/status.go @@ -39,7 +39,6 @@ func statusList(ctx *aero.Context, status string) (*arn.AnimeList, string) { } watchingList := animeList.FilterStatus(status) - watchingList.PrefetchAnime() watchingList.Sort() return watchingList, "" diff --git a/pages/dashboard/dashboard.go b/pages/dashboard/dashboard.go index 8733f999..4e6371ba 100644 --- a/pages/dashboard/dashboard.go +++ b/pages/dashboard/dashboard.go @@ -53,7 +53,6 @@ func Get(ctx *aero.Context) string { } animeList = animeList.Watching() - animeList.PrefetchAnime() for _, item := range animeList.Items { futureEpisodes := item.Anime().UpcomingEpisodes() diff --git a/pages/embed/embed.go b/pages/embed/embed.go index 5eb51d0b..26229140 100644 --- a/pages/embed/embed.go +++ b/pages/embed/embed.go @@ -28,7 +28,6 @@ func Get(ctx *aero.Context) string { } watchingList := animeList.Watching() - watchingList.PrefetchAnime() watchingList.Sort() return utils.AllowEmbed(ctx, ctx.HTML(components.AnimeList(watchingList, animeList.User(), user))) diff --git a/pages/home/animelist.go b/pages/home/animelist.go index 8cff7a18..feb079c5 100644 --- a/pages/home/animelist.go +++ b/pages/home/animelist.go @@ -32,7 +32,6 @@ func AnimeList(ctx *aero.Context, user *arn.User, status string) string { return ctx.Error(http.StatusNotFound, "Anime list not found", nil) } - animeList.PrefetchAnime() animeList.Sort() return ctx.HTML(components.Home(animeList.FilterStatus(status), viewUser, user, status)) diff --git a/pages/profile/profile.go b/pages/profile/profile.go index 9950a9ec..e8dda8e0 100644 --- a/pages/profile/profile.go +++ b/pages/profile/profile.go @@ -37,7 +37,6 @@ func Profile(ctx *aero.Context, viewUser *arn.User) string { user = utils.GetUser(ctx) }, func() { animeList = viewUser.AnimeList() - animeList.PrefetchAnime() // Sort by rating sort.Slice(animeList.Items, func(i, j int) bool { diff --git a/pages/profile/stats.go b/pages/profile/stats.go index 722db07b..9cdbaf37 100644 --- a/pages/profile/stats.go +++ b/pages/profile/stats.go @@ -28,7 +28,6 @@ func GetStatsByUser(ctx *aero.Context) string { } animeList, err := arn.GetAnimeList(viewUser.ID) - animeList.PrefetchAnime() if err != nil { return ctx.Error(http.StatusInternalServerError, "Anime list not found", err)