I wake up this morning to find this in my CLI, and the command having completed:
Code:
[cli][info] Available streams: audio_only, 160p (worst), 360p, 480p, 720p60, 1080p60 (best)
[cli][info] Opening stream: 1080p60 (hls)
[cli][info] Writing output
Apparently it was time Harley to stream RE4 again for a few hours, and it seems to have gotten the whole thing. Interestingly it did not show up as a notif in my twitch GUI instance I had running. So I'm uninstalling that shit as unreliable and not automated enough.
Good news is I have now confirmed that if you want to snag streams on autopilot, the following streamlink code will work if you just leave a CMD window open while your computer is running:
Code:
streamlink.exe -o path:\to\file\{id}-{time:%Y%m%d%H%M%S}.ts --twitch-disable-ads --retry-streams 30 --retry-max 0 https://www.twitch.tv/harleyplays best
That sits on a twitch URL and checks for a live every 30s, and begins recording once found. Sub in Harley's URL for any other twitcher and it will work just the same.
However, there is a caveat, specifically if they do stream you need to reset the command after...or potentially make it scheduled task, since upon finishing grabbing the stream it terminates and stops looking until manually reactivated. I'll see about task scheduling as that may require a slightly altered config.
Edit: updated the code to use replacement values for filename, that should prevent accidental overwriting, though be careful of available space. You can muck around with quality settings, the "best" part of the command selects that, but review the streamlink documentation as you can tell it to record lower quality versions to save space.