From fff3dadabc321871e6819392efc605c6dffe2e69 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Tue, 15 Aug 2023 10:57:27 +0530 Subject: migrated from MAL2Go to mg package --- ui/search.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'ui/search.go') diff --git a/ui/search.go b/ui/search.go index a8e8f51..e492e05 100644 --- a/ui/search.go +++ b/ui/search.go @@ -23,9 +23,8 @@ import ( "fmt" "os" p "github.com/manifoldco/promptui" - mal "github.com/MikunoNaka/macli/mal" - a "github.com/MikunoNaka/MAL2Go/v4/anime" - m "github.com/MikunoNaka/MAL2Go/v4/manga" + "vidhukant.com/macli/mal" + "vidhukant.com/mg" ) var AnimeSearchFields []string = []string { @@ -38,7 +37,7 @@ var AnimeSearchFields []string = []string { } // only search animes probably only now -func AnimeSearch(label, searchString string) a.Anime { +func AnimeSearch(label, searchString string) mg.Anime { animes := mal.SearchAnime(searchString, AnimeSearchFields) // don't show selection prompt if --auto-select is passed if mal.AutoSel > 0 { @@ -155,7 +154,7 @@ var MangaSearchFields []string = []string { "media_type", "status", "authors", } -func MangaSearch(label, searchString string) m.Manga { +func MangaSearch(label, searchString string) mg.Manga { mangas := mal.SearchManga(searchString, MangaSearchFields) // don't show selection prompt if --auto-select is passed if mal.AutoSel > 0 { -- cgit v1.2.3