feat: add control over player_client options
Some checks are pending
build / build (push) Waiting to run
Some checks are pending
build / build (push) Waiting to run
This commit is contained in:
parent
c92fb61410
commit
258bf784bb
|
|
@ -63,7 +63,8 @@ COPY <<-EOT /data/config.json
|
||||||
"cookies_file": "",
|
"cookies_file": "",
|
||||||
"opml_file": "/data/opml.xml",
|
"opml_file": "/data/opml.xml",
|
||||||
"po_token": "",
|
"po_token": "",
|
||||||
"bgutil_server": "http://bgutil:4416"
|
"bgutil_server": "http://bgutil:4416",
|
||||||
|
"player_client": "default,-ios"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,7 @@ type Provider struct {
|
||||||
Po_token string
|
Po_token string
|
||||||
Verbose bool
|
Verbose bool
|
||||||
Bgutil_server string
|
Bgutil_server string
|
||||||
|
Player_client string
|
||||||
}
|
}
|
||||||
|
|
||||||
type Config struct {
|
type Config struct {
|
||||||
|
|
|
||||||
|
|
@ -110,6 +110,11 @@ func Youtube(d Download, p config.Provider) {
|
||||||
args = append(args, fmt.Sprintf("youtube:getpot_bgutil_baseurl=%s", p.Bgutil_server))
|
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")
|
args = append(args, "--format-sort")
|
||||||
if p.Quality != "" {
|
if p.Quality != "" {
|
||||||
args = append(args, p.Quality)
|
args = append(args, p.Quality)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue