Simple use of websocket with bash script. The main goal is to download VOD (only Twitch for now) from several hosting provider.
The code is as clean as possible. However, it's a side project, so don't expect good quality code here :)
- youtube-dl (https://github.com/rg3/youtube-dl)
- sshpass (it's not secure, but I know what I'm doing)
- websocket (https://github.com/joewalnes/websocketd)
- Launch startT2K.sh script
- This start a websocket with twitch2kodi.sh (containing core functions)
- Also start a websocket with workedLog.sh and failedLog.sh (only read log entry from the main script)
- Connect to index.html via http
- The myScript.js script will init connection with the three websocket, and dynamically update the UI.
See the docker implementation of the project on my other repo.