From e143dc8955de158365e193882cb1b881abaa2d94 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Mon, 4 Jul 2022 01:04:20 +0530 Subject: migrating from MAL2Go v2 to v3 --- mal/search.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'mal/search.go') diff --git a/mal/search.go b/mal/search.go index 5add67f..c010112 100644 --- a/mal/search.go +++ b/mal/search.go @@ -21,14 +21,14 @@ package mal import ( "fmt" "os" - a "github.com/MikunoNaka/MAL2Go/v2/anime" - m "github.com/MikunoNaka/MAL2Go/v2/manga" + a "github.com/MikunoNaka/MAL2Go/v3/anime" + m "github.com/MikunoNaka/MAL2Go/v3/manga" ) func SearchAnime(searchString string) []a.Anime { fields := []string{"title", "id", "my_list_status"} - res, err := animeClient.SearchAnime(searchString, SearchLength, SearchOffset, fields) + res, err := animeClient.SearchAnime(searchString, SearchLength, SearchOffset, SearchNSFW, fields) if err != nil { fmt.Println("MyAnimeList reported error while searching:", err.Error()) os.Exit(1) @@ -40,7 +40,7 @@ func SearchAnime(searchString string) []a.Anime { func SearchManga(searchString string) []m.Manga { fields := []string{"title", "id", "my_list_status"} - res, err := mangaClient.SearchManga(searchString, SearchLength, SearchOffset, fields) + res, err := mangaClient.SearchManga(searchString, SearchLength, SearchOffset, SearchNSFW, fields) if err != nil { fmt.Println("MyAnimeList reported error while searching:", err.Error()) os.Exit(1) -- cgit v1.2.3