Use Kitsu finder

This commit is contained in:
2018-04-04 15:08:18 +02:00
parent a6a71358bf
commit e733dd2bf5
4 changed files with 8 additions and 8 deletions

View File

@ -13,10 +13,10 @@ import (
// NewKitsuAnime ...
func NewKitsuAnime(ctx *aero.Context) string {
user := utils.GetUser(ctx)
allAnime := arn.AllAnime()
finder := arn.NewKitsuFinder()
animes := arn.FilterKitsuAnime(func(anime *kitsu.Anime) bool {
return arn.FindKitsuAnime(anime.ID, allAnime) != nil
return finder.GetAnime(anime.ID) == nil
})
sort.Slice(animes, func(i, j int) bool {