feat: add control over player_client options
Some checks are pending
build / build (push) Waiting to run

This commit is contained in:
Viktor Varland 2025-09-08 12:46:24 +02:00
parent c92fb61410
commit 258bf784bb
No known key found for this signature in database
GPG key ID: 940DFD5EADD1E94A
3 changed files with 8 additions and 1 deletions

View file

@ -63,7 +63,8 @@ COPY <<-EOT /data/config.json
"cookies_file": "",
"opml_file": "/data/opml.xml",
"po_token": "",
"bgutil_server": "http://bgutil:4416"
"bgutil_server": "http://bgutil:4416",
"player_client": "default,-ios"
}
}
}

View file

@ -19,6 +19,7 @@ type Provider struct {
Po_token string
Verbose bool
Bgutil_server string
Player_client string
}
type Config struct {

View file

@ -110,6 +110,11 @@ func Youtube(d Download, p config.Provider) {
args = append(args, fmt.Sprintf("youtube:getpot_bgutil_baseurl=%s", p.Bgutil_server))
}
if p.Player_client != "" {
args = append(args, "--extractor-args")
args = append(args, fmt.Sprintf("youtube:player_client=%s", p.Player_client)
}
args = append(args, "--format-sort")
if p.Quality != "" {
args = append(args, p.Quality)