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)) }