feat: pass cookies to youtube

This commit is contained in:
Viktor Varland 2025-03-28 14:01:36 +01:00
parent 9d70d08dc4
commit 62d9835302
Signed by: varl
GPG key ID: 7459F0B410115EE8
2 changed files with 2 additions and 0 deletions

View file

@ -13,6 +13,7 @@ type Provider struct {
Range string
After_date string
Cmd string
Cookies string
}
type Config struct {

View file

@ -62,6 +62,7 @@ func Get(d Download, p config.Provider) {
"--playlist-items", p.Range,
"--restrict-filenames",
"--embed-metadata",
"--cookies", p.Cookies,
)
stdout, err := cmd.StdoutPipe()