aboutsummaryrefslogtreecommitdiff
path: root/mal/search.go
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.xyz>2022-07-04 01:04:20 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.xyz>2022-07-04 01:04:20 +0530
commite143dc8955de158365e193882cb1b881abaa2d94 (patch)
treeaf251368ac96fd9517932468ed29631371b4c106 /mal/search.go
parentbd0da056a9f4c1246ad5a980b1c824b7382478cf (diff)
migrating from MAL2Go v2 to v3
Diffstat (limited to 'mal/search.go')
-rw-r--r--mal/search.go8
1 files changed, 4 insertions, 4 deletions
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)