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

Integrate cmd library #8

Closed Instinctlol closed 5 years ago

Instinctlol commented 6 years ago

Integrating the cmd library is the first step to support the idea of recording multiple streams. With this library, one is able to launch multiple commands.

It should also work well with the getopts library.

At a later step, my idea is to launch 'check' commands via cmd, these will then be checked in certain time intervals by a checker singleton. If the singleton finds the stream to be recordable, it will launch a watcher, which will record the stream and notify the singleton on completion, so that it can be checked again.

Another good thing about having this checker singleton is that we will be able to easily implement a ui on top of that.

maxb2 commented 6 years ago

I made an object-oriented version of the script on the branch objectify. Treating the streams as objects should make handling multiple streams a lot easier.

Instinctlol commented 5 years ago

https://github.com/Instinctlol/automatic-twitch-recorder/commit/dc9496342f836e052ed6b23d635ceb509e6e6ebf resolves this.