Skip to content

Commit

Permalink
Merge pull request #7 from Wraient/ci/cd
Browse files Browse the repository at this point in the history
Add mpv.exe using Git LFS
  • Loading branch information
Wraient authored Oct 26, 2024
2 parents d6d9177 + 0aa4af5 commit ce8d535
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Build/mpv.exe filter=lfs diff=lfs merge=lfs -text
3 changes: 3 additions & 0 deletions Build/mpv.exe
Git LFS file not shown
1 change: 0 additions & 1 deletion cmd/curd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,6 @@ func main() {
if err != nil {
internal.Log("Failed to mpv speed"+err.Error(), logFile)
}

}

time.Sleep(1 * time.Second) // Wait before checking again
Expand Down
13 changes: 10 additions & 3 deletions internal/curd.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,16 @@ func ExitCurd(err error) {
RestoreScreen()
if err != nil {
fmt.Println(err)
os.Exit(1)
if runtime.GOOS == "windows" {
fmt.Println("Press Enter to exit")
var wait string
fmt.Scanln(&wait)
os.Exit(1)
} else {
fmt.Println("Have a great day!")
os.Exit(1)
}
}
fmt.Println("Have a great day!")
os.Exit(0)
}

Expand Down Expand Up @@ -267,7 +274,7 @@ func SetupCurd(userCurdConfig *CurdConfig, anime *Anime, user *User, databaseAni
if anilistSelectedOption.Label == "add_new" {
AddNewAnime(userCurdConfig, anime, user, databaseAnimes, logFile)
}

userQuery = anilistSelectedOption.Label
anime.AnilistId, err = strconv.Atoi(anilistSelectedOption.Key)
if err != nil {
Expand Down

0 comments on commit ce8d535

Please sign in to comment.