@@ -1365,7 +1365,7 @@ func NextEpisodePrompt(userCurdConfig *CurdConfig) {
13651365 // Create options for the selection
13661366 options := []SelectionOption {
13671367 {Key : "yes" , Label : "Yes, start next episode" },
1368- // "no" : "No, quit",
1368+ // {Key: "-1", Label : "No, quit"} ,
13691369 }
13701370
13711371 // Use DynamicSelect for both CLI and Rofi modes
@@ -1375,6 +1375,8 @@ func NextEpisodePrompt(userCurdConfig *CurdConfig) {
13751375 ExitCurd (err )
13761376 }
13771377
1378+ Log (fmt .Sprintf ("User Selected Key: '%s', Label: '%s'" , selectedOption .Key , selectedOption .Label ))
1379+
13781380 if selectedOption .Key == "-1" {
13791381 // User selected to quit
13801382 fmt .Print ("\r \033 [K" ) // Carriage return and clear line
@@ -1384,6 +1386,16 @@ func NextEpisodePrompt(userCurdConfig *CurdConfig) {
13841386 return
13851387 }
13861388
1389+ if selectedOption .Key != "yes" {
1390+ // User selected something other than yes (shouldn't happen, but safety check)
1391+ Log (fmt .Sprintf ("Unexpected selection key: %s" , selectedOption .Key ))
1392+ fmt .Print ("\r \033 [K" ) // Carriage return and clear line
1393+ ExitMPV (anime .Ep .Player .SocketPath )
1394+ CurdOut ("Exiting without starting next episode" )
1395+ ExitCurd (nil )
1396+ return
1397+ }
1398+
13871399 // If yes, start the next episode
13881400 prevEpisode := anime .Ep .Number
13891401 anime .Ep .Number ++
0 commit comments