Commit a0fb5543b8

a0fb5543b85de104a894c29e51ce6fd2dc7774a5

parent: 678bcd8861

Unsigned

Athul Dinesan <athuldinesan5@gmail.com> · 2024-12-24 18:16 UTC

mpv: force media title also

Signed-off-by: Athul Dinesan <athuldinesan5@gmail.com>

Layout: unified · split

internal/player.go +2 −2
@@ -46,8 +46,8 @@ func StartVideo(link string, args []string, title string) (string, error) {
4646 }
4747
4848 // Add the title to MPV arguments
49 titleArg := fmt.Sprintf("--title=%s", title)
50 args = append(args, titleArg)
49 titleArgs := []string{fmt.Sprintf("--title=%s", title),fmt.Sprintf("--force-media-title=%s", title)}
50 args = append(args, titleArgs...)
5151
5252 // Prepare arguments for mpv
5353 var mpvArgs []string