This script provides control functionalities for managing Twitch stream recording. It allows you to create, enable, disable, start, stop, restart and view the status of stream recorders.
- Bash (Bourne Again SHell)
systemctl
command (available on most Linux distributions)- Python 3 with
tsr.py
script located in the home directory of the non-root user specified
- Clone the repository:
git clone https://github.com/DravenTec/tsrcontrol
- Navigate to the script directory:
cd tsrcontrol
- Make the script executable:
chmod +x tsrcontrol.sh
- Run the script:
./tsrcontrol.sh
The script presents a menu with the following options:
- Enable: Enable a specific stream recorder or all known recorders.
- Disable: Disable a specific stream recorder or all known recorders.
- Start: Start a specific stream recorder or all known recorders.
- Stop: Stop a specific stream recorder or all known recorders.
- Status: View the status of a specific stream recorder or all known recorders.
- Create service: Create a new stream recorder service.
- Active recorder: View the currently active stream recorder.
- Delete recorder: Delete a specific stream recorder and its associated service.
- Quit: Exit the script.
Follow the on-screen instructions and provide the required inputs to perform the desired action.
The script uses a configuration file located at ~/.tsrconf
to store the non-root user and the list of known stream recorders.
If the configuration file doesn't exist, it will be created on the first run.
This script is licensed under the MIT License.
WARNING: This script is still under development and may contain errors and incompleteness. Use it at your own risk and we assume no liability for any damage or loss of data that may result from the use of the script. Please use the script only if you agree with the risks and limitations. We welcome feedback and bug reports to further improve the script.