No description
Find a file
2023-05-06 20:16:29 -04:00
src improved accuracy of download success messages 2023-05-05 01:21:13 -04:00
.dockerignore add build and config files to .dockerignore 2023-05-06 16:46:45 -04:00
.gitignore add cookies.txt and Cargo.lock to .gitignore 2023-05-06 16:47:34 -04:00
Cargo.toml improve cargo metadata 2023-05-04 22:06:47 -04:00
Dockerfile add dockerfile 2023-05-05 00:02:34 -04:00
README.md fix docker-compose example to be complete 2023-05-06 20:16:29 -04:00
rustfmt.toml Initial implementation 2023-05-01 01:27:11 -04:00

Stream VOD Recorder

svr is a utility that monitors and downloads livestreams for any site with a youtube-dl extractor.

Example CLI Usage

svr -c /path/to/config.toml

Example config.toml:

output = "/media/livestreams"

[[streams]]
subpath = "ThePrimeagen"
type = "youtube-dl"
url = "https://twitch.tv/ThePrimeagen"
frequency = "10m"

[[streams]]
subpath = "LofiGirl"
type = "youtube-dl"
url = "https://www.youtube.com/@LofiGirl/live"
frequency = "2h"

[[streams]]
subpath = "LofiGirl"
type = "youtube-dl"
url = "https://www.youtube.com/watch?v=jfKfPfyJRdk"
frequency = "2h"

Example docker-compose.yml:

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

  • 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
  • Add --help menu
  • Web GUI for subscription management