Revert "debug"

This reverts commit 2819f54a35.
This commit is contained in:
milarin 2023-01-17 17:02:34 +01:00
parent 2819f54a35
commit 433adc9752

View File

@ -2,7 +2,6 @@ package logic
import ( import (
"context" "context"
"fmt"
"git.milar.in/milarin/anilist" "git.milar.in/milarin/anilist"
"git.milar.in/milarin/channel" "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{ anime = anilist.NewApi(token).GetMedia(context.Background(), anilist.MediaQuery{
Search: title, Search: title,
Type: anilist.MediaTypeAnime, Type: anilist.MediaTypeAnime,
}, func(err error) { fmt.Println(err) }).First() }, nil).First()
if anime == nil { if anime == nil {
return nil, ErrAnimeNotFound.New(title) return nil, ErrAnimeNotFound.New(title)