Commit dcc3028f34
Unsigned
Layout: unified · split
internal/curd.go +6
| @@ -90,6 +90,12 @@ func SetupCurd(userCurdConfig *CurdConfig, anime *Anime, user *User, databaseAni | ||
| 90 | 90 | |
| 91 | 91 | // Select anime to watch (Anilist) |
| 92 | 92 | anilistSelectedOption, err := DynamicSelect(animeListMap) |
| 93 | if anilistSelectedOption.Key == "-1" || anilistSelectedOption.Label == "quit" { | |
| 94 | os.Exit(0) | |
| 95 | } | |
| 96 | if anilistSelectedOption.Label == "add_new" { // Todo: Add new anime | |
| 97 | os.Exit(0) | |
| 98 | } | |
| 93 | 99 | userQuery := anilistSelectedOption.Label |
| 94 | 100 | anime.AnilistId, err = strconv.Atoi(anilistSelectedOption.Key) |
| 95 | 101 | if err != nil { |