Compare commits
2 commits
9d70d08dc4
...
f18a58a3b8
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f18a58a3b8 | ||
|
|
62d9835302 |
|
|
@ -15,6 +15,7 @@ url = "https://www.youtube.com" # full yt url
|
||||||
throttle = 1 # throttle yt request
|
throttle = 1 # throttle yt request
|
||||||
range = "1:5:1" # [START][:STOP][:STEP]
|
range = "1:5:1" # [START][:STOP][:STEP]
|
||||||
after_date = "20250326" # not in use
|
after_date = "20250326" # not in use
|
||||||
|
cookies = "./cookies.txt" # pass user cookies to yt
|
||||||
```
|
```
|
||||||
|
|
||||||
`subs-opml.xml`:
|
`subs-opml.xml`:
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,7 @@ type Provider struct {
|
||||||
Range string
|
Range string
|
||||||
After_date string
|
After_date string
|
||||||
Cmd string
|
Cmd string
|
||||||
|
Cookies string
|
||||||
}
|
}
|
||||||
|
|
||||||
type Config struct {
|
type Config struct {
|
||||||
|
|
|
||||||
|
|
@ -62,6 +62,7 @@ func Get(d Download, p config.Provider) {
|
||||||
"--playlist-items", p.Range,
|
"--playlist-items", p.Range,
|
||||||
"--restrict-filenames",
|
"--restrict-filenames",
|
||||||
"--embed-metadata",
|
"--embed-metadata",
|
||||||
|
"--cookies", p.Cookies,
|
||||||
)
|
)
|
||||||
|
|
||||||
stdout, err := cmd.StdoutPipe()
|
stdout, err := cmd.StdoutPipe()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue