From a0fb5543b85de104a894c29e51ce6fd2dc7774a5 Mon Sep 17 00:00:00 2001 From: Athul Dinesan Date: Tue, 24 Dec 2024 23:46:18 +0530 Subject: [PATCH] mpv: force media title also Signed-off-by: Athul Dinesan --- internal/player.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/player.go b/internal/player.go index c89737b..b43359f 100644 --- a/internal/player.go +++ b/internal/player.go @@ -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