Created
September 17, 2022 01:25
-
-
Save Cr4zyy/d8d8d47f07a0ba27f1c7f6d9a18af500 to your computer and use it in GitHub Desktop.
Will open minimized powershell windows using streamlink to record all provided stream names
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#MODIFY THESE | |
#List of streamers, add as many or few as you want, internet/disk speed depending | |
$streams = @("mande", "funfps", "sweetdreams") | |
$folder = "D:\streams" | |
#This script will start minimized powershell windows each running a streamlink instance for the list of streams above. | |
#Streamlink auto closes if a stream isn't live or ends. Otherwise can be ended with ctrl-c or closing the powershell windows | |
#DONT MODIFY | |
try { streamlink.exe -V } | |
catch { | |
Write-Host "Error: Streamlink not installed.`nInstall from https://github.com/streamlink/windows-builds/releases" | |
Read-Host -Prompt "`nPress Enter to exit" | |
} | |
foreach ($s in $streams) { | |
$time = (Get-Date).ToString("_dd-MM-yy_HH-mm") | |
Start-Process powershell -WindowStyle Minimized -ArgumentList "-command &{`$host.ui.RawUI.WindowTitle = '$s - Recording'; streamlink.exe --twitch-disable-ads twitch.tv/$s best -o '$folder\$s\{title}-$time.ts'}" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment