aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-rw-r--r--cmd/search.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/cmd/search.go b/cmd/search.go
index 2496e17..463b109 100644
--- a/cmd/search.go
+++ b/cmd/search.go
@@ -52,11 +52,15 @@ func searchManga(searchInput string) {
}
func searchAnime(searchInput string) {
+ animeIsAdded := false
if searchInput == "" {
searchInput = ui.TextInput("Search Anime:", "Search can't be blank.")
}
- animeId := ui.SearchAndGetID("Select Anime", searchInput)
- ui.ActionMenu()(animeId)
+ anime := ui.AnimeSearch("Select Anime", searchInput)
+ if anime.MyListStatus.Status != "" {
+ animeIsAdded = true
+ }
+ ui.ActionMenu(animeIsAdded)(anime)
}
func init() {