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) {
46 } 46 }
47 47
48 // Add the title to MPV arguments 48 // Add the title to MPV arguments
49 titleArg := fmt.Sprintf("--title=%s", title) 49 titleArgs := []string{fmt.Sprintf("--title=%s", title),fmt.Sprintf("--force-media-title=%s", title)}
50 args = append(args, titleArg) 50 args = append(args, titleArgs...)
51 51
52 // Prepare arguments for mpv 52 // Prepare arguments for mpv
53 var mpvArgs []string 53 var mpvArgs []string