debug
This commit is contained in:
parent
8b4651fad4
commit
2819f54a35
@ -2,6 +2,7 @@ package logic
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
|
||||
"git.milar.in/milarin/anilist"
|
||||
"git.milar.in/milarin/channel"
|
||||
@ -58,7 +59,7 @@ func SearchAnimeByTitle(title string) (anime *anilist.Media, err error) {
|
||||
anime = anilist.NewApi(token).GetMedia(context.Background(), anilist.MediaQuery{
|
||||
Search: title,
|
||||
Type: anilist.MediaTypeAnime,
|
||||
}, nil).First()
|
||||
}, func(err error) { fmt.Println(err) }).First()
|
||||
|
||||
if anime == nil {
|
||||
return nil, ErrAnimeNotFound.New(title)
|
||||
|
Loading…
Reference in New Issue
Block a user