From 5bfe792fa6d2b853e736a2d5cb25b4056d5f557b Mon Sep 17 00:00:00 2001 From: Adem <34811741+aatikturk@users.noreply.github.com> Date: Mon, 23 Oct 2023 09:29:16 +0300 Subject: [PATCH] Update reqs.py added set_record_directory method to ReqClient. --- obsws_python/reqs.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/obsws_python/reqs.py b/obsws_python/reqs.py index 4321d29..bbe2bd7 100644 --- a/obsws_python/reqs.py +++ b/obsws_python/reqs.py @@ -432,6 +432,19 @@ class ReqClient: """ return self.send("GetRecordDirectory") + def set_record_directory(self, recordDirectory): + """ + Sets the current directory that the record output writes files to. + IMPORTANT NOTE: Requires obs websocket v5.3 or higher. + + :param recordDirectory: Output directory + :type recordDirectory: str + """ + payload = { + "recordDirectory": recordDirectory, + } + return self.send("SetRecordDirectory", payload) + def get_source_active(self, name): """ Gets the active and show state of a source