Skip to content

Commit

Permalink
Merge pull request #22 from athuld/main
Browse files Browse the repository at this point in the history
mpv: force media title also
  • Loading branch information
Wraient authored Dec 24, 2024
2 parents 678bcd8 + a0fb554 commit 291425b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/player.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ func StartVideo(link string, args []string, title string) (string, error) {
}

// Add the title to MPV arguments
titleArg := fmt.Sprintf("--title=%s", title)
args = append(args, titleArg)
titleArgs := []string{fmt.Sprintf("--title=%s", title),fmt.Sprintf("--force-media-title=%s", title)}
args = append(args, titleArgs...)

// Prepare arguments for mpv
var mpvArgs []string
Expand Down

0 comments on commit 291425b

Please sign in to comment.