Skip to content
This repository was archived by the owner on Dec 1, 2025. It is now read-only.

Commit da508cf

Browse files
committed
mpv fix
1 parent a1d61ac commit da508cf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

internal/player/mpv.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,15 +81,14 @@ func Play(params MPVParams) (*exec.Cmd, string, error) {
8181

8282
// Eğer altyazı URL'si varsa, altyazı dosyasını ekle
8383
if params.SubtitleUrl != nil && *params.SubtitleUrl != "" {
84-
args = append(args, "--sub-file=", *params.SubtitleUrl)
84+
args = append(args, fmt.Sprintf("--sub-file=%s", *params.SubtitleUrl))
8585
}
8686

8787
// Video URL'sini ekle
8888
args = append(args, params.Url)
8989

9090
mpvBinary := getMPVBinary()
9191
cmd := exec.Command(mpvBinary, args...)
92-
fmt.Printf("%s %s\n", mpvBinary, strings.Join(args, " "))
9392
if err := cmd.Start(); err != nil {
9493
return cmd, "", err // Başlatma hatası
9594
}

0 commit comments

Comments
 (0)