Commit 1fa06e48a2
Unregistered key
Layout: unified · split
cmd/curd/main.go +7 −7
| @@ -543,17 +543,17 @@ func main() { | ||
| 543 | 543 | if userCurdConfig.NextEpisodePrompt { |
| 544 | 544 | internal.CurdOut(fmt.Sprintf("Start next episode (%d)?", anime.Ep.Number)) |
| 545 | 545 | |
| 546 | options := map[string]string{ | |
| 547 | "yes": "Yes", | |
| 548 | "no": "No", | |
| 549 | } | |
| 550 | ||
| 551 | selectedOption, err := internal.DynamicSelect(options, false) | |
| 546 | selectedOption, err := internal.DynamicSelect(map[string]string{"yes": "Yes"}, false) | |
| 552 | 547 | if err != nil { |
| 553 | 548 | internal.ExitCurd(err) |
| 554 | 549 | } |
| 555 | 550 | |
| 556 | if selectedOption.Key == "no" || selectedOption.Key == "-1" { | |
| 551 | if selectedOption.Key != "yes" { | |
| 552 | // Send command to close MPV | |
| 553 | _, err := internal.MPVSendCommand(anime.Ep.Player.SocketPath, []interface{}{"quit"}) | |
| 554 | if err != nil { | |
| 555 | internal.Log("Error closing MPV: "+err.Error(), logFile) | |
| 556 | } | |
| 557 | 557 | internal.ExitCurd(nil) |
| 558 | 558 | } |
| 559 | 559 | // If yes or any other case, continue with the next episode |