TwitchVault
TwitchVault copied to clipboard
Automatic TDCLI version checker and downloader / VOSK downloader
An extra feature I am looking into adding is making the process automatic for downloading and maintaining the TDCLI and Vosk prerequisites.
Ideas:
-
Include a TDCLI version number in this repo. Seems they have made changes often enough that I need to account for so it may be worth just maintaining a target supported version. It'll be able to be changed in code if someone wants to 'roll their own'.
-
Check for an existing TDCLI download and check its version. If it doesn't exist or the version is incorrect, we can grab a corrected version.
-
Github has a json response listing available releases for a repo that we can use: https://api.github.com/repos/lay295/TwitchDownloader/releases/latest
-
Use some OS checking tools in python to verify OS type, 32 vs 64 bit, etc.. Use some fuzzy wildcard naming to grab the correct option and download link. Download and unzip in place.
-
Vosk download should be easy. Models don't appear to have changed in ages so for all intents we can just have a static download URL. Either at startup or when the SRT task rolls around, check if we need to use the SRT stuff and if so, do the same song and dance of checking the files in repo (may get fancy and hash the individual files and verify they all exist and re-download/unzip if not?) and download and unzip.
I don't know if you still maintain this repo, but TDCLI now has a built-in updater. That should save you some work.