diff options
author | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2023-08-15 10:57:27 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2023-08-15 10:57:27 +0530 |
commit | fff3dadabc321871e6819392efc605c6dffe2e69 (patch) | |
tree | 25aceed23b73b2ad975a06d73fad091d0886a2a6 /ui/search.go | |
parent | a44d6eb2fdddc75983c735e1a0fa744014db9593 (diff) |
migrated from MAL2Go to mg package
Diffstat (limited to 'ui/search.go')
-rw-r--r-- | ui/search.go | 9 |
1 files changed, 4 insertions, 5 deletions
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 { |