fix: bgutil has a new extractor arg
Some checks are pending
build / build (push) Waiting to run

This commit is contained in:
Viktor Varland 2025-09-08 23:01:46 +02:00
parent fcf1ef65d3
commit db2bd135bc
No known key found for this signature in database
GPG key ID: 940DFD5EADD1E94A

View file

@ -99,13 +99,14 @@ func Youtube(d Download, p config.Provider) {
args = append(args, "--no-cookies") 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 var youtubeArgs []string
if p.Po_token != "" { if p.Po_token != "" {
youtubeArgs = append(youtubeArgs, fmt.Sprintf("po_token=web.gvs+%s", 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 != "" { if p.Player_client != "" {
youtubeArgs = append(youtubeArgs, fmt.Sprintf("player_client=%s", p.Player_client)) youtubeArgs = append(youtubeArgs, fmt.Sprintf("player_client=%s", p.Player_client))
} }