Wait for video if it doesn't believe the streamer is live

This commit is contained in:
barelyprofessional
2025-07-08 17:23:53 -05:00
parent 2ec9cad2f4
commit 429faabb31

View File

@@ -102,7 +102,7 @@ public class YtDlpCapture(string streamUrl, CancellationToken ct = default)
var ytDlpLine = $"{_settings[BuiltIn.Keys.CaptureYtDlpBinaryPath].Value} -o \"{_settings[BuiltIn.Keys.CaptureYtDlpOutputFormat].Value}\" " +
$"--user-agent \"{_settings[BuiltIn.Keys.CaptureYtDlpUserAgent].Value}\" " +
$"--cookies-from-browser {_settings[BuiltIn.Keys.CaptureYtDlpCookiesFromBrowser].Value} " +
$"--write-info-json {streamUrl}";
$"--write-info-json --wait-for-video 15 {streamUrl}";
string scriptContent;
if (OperatingSystem.IsWindows())