Commit 0aa4af528f
0aa4af528fd8dcf84d0f1c63414d4b868bc824a4
parent: 103708216d
Unsigned
Wraient <wraient.911@gmail.com> · 2024-10-26 17:39 UTC
Add mpv.exe using Git LFS
Layout: unified · split
.gitattributes
added
+1
| @@ -0,0 +1 @@ |
| |
1 | Build/mpv.exe filter=lfs diff=lfs merge=lfs -text |
Build/mpv.exe
added
+3
| @@ -0,0 +1,3 @@ |
| |
1 | version https://git-lfs.github.com/spec/v1 |
| |
2 | oid sha256:4db25fddea3c6ad255743295ef90391e1e9c504281e0bc7b46f9703a89a28954 |
| |
3 | size 112778752 |
cmd/curd/main.go
−1
| @@ -363,7 +363,6 @@ func main() { |
| 363 | if err != nil { |
363 | if err != nil { |
| 364 | internal.Log("Failed to mpv speed"+err.Error(), logFile) |
364 | internal.Log("Failed to mpv speed"+err.Error(), logFile) |
| 365 | } |
365 | } |
| 366 | |
| |
| 367 | } |
366 | } |
| 368 | |
367 | |
| 369 | time.Sleep(1 * time.Second) // Wait before checking again |
368 | time.Sleep(1 * time.Second) // Wait before checking again |
internal/curd.go
+10 −3
| @@ -114,9 +114,16 @@ func ExitCurd(err error) { |
| 114 | RestoreScreen() |
114 | RestoreScreen() |
| 115 | if err != nil { |
115 | if err != nil { |
| 116 | fmt.Println(err) |
116 | fmt.Println(err) |
| 117 | os.Exit(1) |
117 | if runtime.GOOS == "windows" { |
| |
118 | fmt.Println("Press Enter to exit") |
| |
119 | var wait string |
| |
120 | fmt.Scanln(&wait) |
| |
121 | os.Exit(1) |
| |
122 | } else { |
| |
123 | fmt.Println("Have a great day!") |
| |
124 | os.Exit(1) |
| |
125 | } |
| 118 | } |
126 | } |
| 119 | fmt.Println("Have a great day!") |
| |
| 120 | os.Exit(0) |
127 | os.Exit(0) |
| 121 | } |
128 | } |
| 122 | |
129 | |
| @@ -267,7 +274,7 @@ func SetupCurd(userCurdConfig *CurdConfig, anime *Anime, user *User, databaseAni |
| 267 | if anilistSelectedOption.Label == "add_new" { |
274 | if anilistSelectedOption.Label == "add_new" { |
| 268 | AddNewAnime(userCurdConfig, anime, user, databaseAnimes, logFile) |
275 | AddNewAnime(userCurdConfig, anime, user, databaseAnimes, logFile) |
| 269 | } |
276 | } |
| 270 | |
277 | |
| 271 | userQuery = anilistSelectedOption.Label |
278 | userQuery = anilistSelectedOption.Label |
| 272 | anime.AnilistId, err = strconv.Atoi(anilistSelectedOption.Key) |
279 | anime.AnilistId, err = strconv.Atoi(anilistSelectedOption.Key) |
| 273 | if err != nil { |
280 | if err != nil { |