Added a stream capture locking feature due to DLive spuriously reporting a streamer as not live when they are and causing duplicate captures.

It works by having the capture script touch a file before it begins capturing, then remove the file when the capture is complete.

The bot will check if this file is present before checking if a DLive streamer is actually live which will reduce the amount of API hits and prevent it from going live twice.
This commit is contained in:
barelyprofessional
2025-11-08 09:01:38 -06:00
parent 3ca9e1278b
commit ccf26d24a2
3 changed files with 43 additions and 6 deletions

View File

@@ -424,6 +424,8 @@ public static class BuiltIn
public static string KasinoPlanesRandomRiggeryEnabled = "Kasino.Planes.RandomRiggeryEnabled";
[BuiltInSetting("Array of forum IDs to guarantee riggery in Planes", SettingValueType.Array, "[]")]
public static string KasinoPlanesTargetedRiggeryVictims = "Kasino.Planes.TargetedRiggeryVictims";
[BuiltInSetting("Table of locks to look for before checking if someone is live / initiating a capture", SettingValueType.Complex, "{}")]
public static string CaptureLockTable = "Capture.LockTable";
}
}