|
|
|
@ -2,7 +2,12 @@
|
|
|
|
|
|
|
|
|
|
`svr` is a utility that monitors and downloads livestreams for any site with a youtube-dl extractor.
|
|
|
|
|
|
|
|
|
|
Example `config.toml`:
|
|
|
|
|
## Example CLI Usage
|
|
|
|
|
```bash
|
|
|
|
|
svr -c /path/to/config.toml
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Example `config.toml`:
|
|
|
|
|
```toml
|
|
|
|
|
output = "/media/livestreams"
|
|
|
|
|
|
|
|
|
@ -25,13 +30,25 @@ url = "https://www.youtube.com/watch?v=jfKfPfyJRdk"
|
|
|
|
|
frequency = "2h"
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Example `docker-compose.yml`:
|
|
|
|
|
```yaml
|
|
|
|
|
version: "3.0"
|
|
|
|
|
services:
|
|
|
|
|
svr:
|
|
|
|
|
container_name: svr
|
|
|
|
|
image: git.nickzana.dev/nick/svr:latest
|
|
|
|
|
volumes:
|
|
|
|
|
- $CONFIG/config.toml:/config.toml
|
|
|
|
|
- $MEDIA_PATH/livestreams:/media/livestreams
|
|
|
|
|
restart: unless-stopped
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## TODO
|
|
|
|
|
- Implement credential management for protected streams
|
|
|
|
|
- More configuration options for individual streams
|
|
|
|
|
- Handle server/stream interruptions (e.g. merging multiple stream files)
|
|
|
|
|
- Monitor playlists and other non-live content (monitor a channel???)
|
|
|
|
|
- Automatic deletion after e.g. a period of time
|
|
|
|
|
- Improved logging (tracing?)
|
|
|
|
|
- Save metadata somewhere
|
|
|
|
|
- Dockerfile for easy deployment
|
|
|
|
|
- Improve cli docs
|
|
|
|
|
- Add --help menu
|
|
|
|
|
- Web GUI for subscription management
|
|
|
|
|