You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Log(fmt.Sprintf("Failed to select anime: %v", err))
1022
1022
ExitCurd(fmt.Errorf("Failed to select anime"))
1023
1023
}
1024
-
iflen(animeList) ==0 {
1025
-
ExitCurd(fmt.Errorf("No results found."))
1024
+
// Prompt user for manual query when no results found
1025
+
for {
1026
+
varmanualQuerystring
1027
+
ifuserCurdConfig.RofiSelection {
1028
+
userInput, err:=GetUserInputFromRofi(fmt.Sprintf("No results found for '%s'.\nPress Enter to search with AniList name, or enter a custom name to search on AllAnime.", userQuery))
1029
+
iferr!=nil {
1030
+
Log("Error getting user input: "+err.Error())
1031
+
ExitCurd(fmt.Errorf("Error getting user input: "+err.Error()))
1032
+
}
1033
+
manualQuery=userInput
1034
+
} else {
1035
+
CurdOut(fmt.Sprintf("No results found for '%s'.", userQuery))
1036
+
CurdOut("Press Enter to search with AniList name, or enter a custom name to search on AllAnime:")
userInput, err:=GetUserInputFromRofi(fmt.Sprintf("No results found for '%s'.\nPress Enter to search with the original name, or enter a custom name to search on AllAnime.", query))
287
+
iferr!=nil {
288
+
Log("Error getting user input: "+err.Error())
289
+
ExitCurd(fmt.Errorf("Error getting user input: "+err.Error()))
290
+
}
291
+
manualQuery=userInput
292
+
} else {
293
+
CurdOut(fmt.Sprintf("No results found for '%s'.", query))
294
+
CurdOut("Press Enter to search with the original name, or enter a custom name to search on AllAnime:")
0 commit comments