subsyt/README.md

58 lines
1.2 KiB
Markdown

# subsyt
## config
`config.toml`:
```toml
dry_run = true # set to `false` for real run
out_dir = "./vids" # path to archive vids
[provider]
[provider.youtube]
cmd = "./yt-dlp" # path to yt-dlp binary
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`:
```xml
<?xml version="1.0"?>
<opml version="1.1">
<body>
<outline ...>
<outline .../>
<outline .../>
<outline .../>
</outline>
<outline ...>
<outline .../>
<outline .../>
<outline .../>
</outline>
</body>
</opml>
```
## Cookies
E.g. from Chromium:
```
yt-dlp --cookies-from-browser chromium --cookies cookies.txt
```
## Result
```
vids
└── 2 Much ColinFurze
├── 2025
│   └── 20250327-Secret_Garage_Update_15_Questions_answered_and_Roofs_Covered-XN4HiUMuQdo.webm
└── archive.txt
```