seriousm4x / twitch-rec

Python3 script to record twitch streams with streamlink

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

twitch-rec

twitch-rec will record your favorite streamer so you don't have to rely on VODs when you missed a stream.

Getting Started

Sample docker-compose.yml file to build image and spin-up a container. Clone the repo and change the placeholders.

version: '3'
services:
  twitch-rec:
    container_name: twitch-rec
    user: 1000:1000
    build: .
    restart: always
    volumes:
      - ./recordings:/app/recordings
    environment:
      STREAMER: xxxxx
      QUALITY: best
      INTERVAL: 15
      CLIENT_ID: xxxxx
      CLIENT_SECRET: xxxxx
      PUSHOVER_TOKEN: xxxxx
      PUSHOVER_USER: xxxxx
      TZ: Europe/Paris

Things to change in docker-compose.yml:

  • volume path "recordings" to the folder you want to store the vids at
  • STREAMER
  • CLIENT_ID
  • CLIENT_SECRET
  • PUSHOVER_TOKEN
  • PUSHOVER_USER

CLIENT_ID and CLIENT_SECRET can be created at dev.twitch.tv/console/apps.

If you don't use pushover, just delete both lines.

Contributing

Feel free to contribute and bring in your ideas to enhance this tool or to add more notification possibilities.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Python3 script to record twitch streams with streamlink

License:MIT License


Languages

Language:Python 88.9%Language:Dockerfile 11.1%