From db2bd135bcf0a835554c648c7a8d7429e61595c1 Mon Sep 17 00:00:00 2001 From: Viktor Varland Date: Mon, 8 Sep 2025 23:01:46 +0200 Subject: [PATCH] fix: bgutil has a new extractor arg --- internal/dl/dl.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/internal/dl/dl.go b/internal/dl/dl.go index 912028b..b847402 100644 --- a/internal/dl/dl.go +++ b/internal/dl/dl.go @@ -99,13 +99,14 @@ func Youtube(d Download, p config.Provider) { args = append(args, "--no-cookies") } + if p.Bgutil_server != "" { + args = append(args, fmt.Sprintf("youtubepot-bgutilhttp:base_url=%s", p.Bgutil_server)) + } + var youtubeArgs []string if p.Po_token != "" { youtubeArgs = append(youtubeArgs, fmt.Sprintf("po_token=web.gvs+%s", p.Po_token)) } - if p.Bgutil_server != "" { - youtubeArgs = append(youtubeArgs, fmt.Sprintf("getpot_bgutil_baseurl=%s", p.Bgutil_server)) - } if p.Player_client != "" { youtubeArgs = append(youtubeArgs, fmt.Sprintf("player_client=%s", p.Player_client)) }