Compare commits

...

2 commits

Author SHA1 Message Date
Viktor Varland f18a58a3b8
docs: update readme 2025-03-28 14:03:13 +01:00
Viktor Varland 62d9835302
feat: pass cookies to youtube 2025-03-28 14:01:36 +01:00
3 changed files with 3 additions and 0 deletions

View file

@ -15,6 +15,7 @@ url = "https://www.youtube.com" # full yt url
throttle = 1 # throttle yt request
range = "1:5:1" # [START][:STOP][:STEP]
after_date = "20250326" # not in use
cookies = "./cookies.txt" # pass user cookies to yt
```
`subs-opml.xml`:

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