Instinctlol / automatic-twitch-recorder

Checks if a user on twitch is currently streaming and then records the stream via streamlink
187 stars 40 forks source link

Monitor keywords/games #1

Open camjac251 opened 8 years ago

camjac251 commented 8 years ago

Would it be possible to have the script monitor a game's page and/or keywords in the title?

I'd like to record all streams of one game without having to manually startup multiple scripts for individual channels

Instinctlol commented 8 years ago

Yes this is possilbe. However, I'm currently occupied with university + work + another project I'm working on, so don't expect this anytime soon (maybe in a year or so).

But feel free to fork / PR.

Here's what you will need to do:

We need to use threading. Google "background thread python" or something equivalent. Here is a good answer So then we have a main-thread and background-threads. The main-thread watches a "game" (take a look here, e.g. for Dota 2) and starts new background-threads for every stream, who will handle the recording via livestreamer.