New Kitsu import

This commit is contained in:
2018-04-04 13:37:04 +02:00
parent 60f568b9b1
commit 1bc62ab105
2 changed files with 36 additions and 1 deletions

View File

@ -112,6 +112,7 @@ func getMatches(ctx *aero.Context) ([]*arn.KitsuMatch, string) {
// findAllMatches returns all matches for the anime inside an anilist anime list.
func findAllMatches(library chan *kitsu.LibraryEntry) []*arn.KitsuMatch {
allAnime := arn.AllAnime()
matches := []*arn.KitsuMatch{}
for item := range library {
@ -122,7 +123,7 @@ func findAllMatches(library chan *kitsu.LibraryEntry) []*arn.KitsuMatch {
matches = append(matches, &arn.KitsuMatch{
KitsuItem: item,
ARNAnime: arn.FindKitsuAnime(item.Anime.ID),
ARNAnime: arn.FindKitsuAnime(item.Anime.ID, allAnime),
})
}