diff --git a/anilist.go b/anilist.go index bcb487d..09b1d9f 100644 --- a/anilist.go +++ b/anilist.go @@ -2,7 +2,6 @@ package logic import ( "context" - "fmt" "git.milar.in/milarin/anilist" "git.milar.in/milarin/channel" @@ -59,7 +58,7 @@ func SearchAnimeByTitle(title string) (anime *anilist.Media, err error) { anime = anilist.NewApi(token).GetMedia(context.Background(), anilist.MediaQuery{ Search: title, Type: anilist.MediaTypeAnime, - }, func(err error) { fmt.Println(err) }).First() + }, nil).First() if anime == nil { return nil, ErrAnimeNotFound.New(title)