diff --git a/pyproject.toml b/pyproject.toml index 37a92e1..275cdc0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "simple-recorder" -version = "0.3.1" +version = "0.3.2" description = "A simple OBS recorder" authors = [{ name = "onyx-and-iris", email = "code@onyxandiris.online" }] dependencies = [ diff --git a/src/simple_recorder/directory.py b/src/simple_recorder/directory.py index eea6737..cc35a9f 100644 --- a/src/simple_recorder/directory.py +++ b/src/simple_recorder/directory.py @@ -21,7 +21,7 @@ class Directory(Command): async def run(self): try: with obsws.ReqClient( - host=self.host, port=self.port, password=self.password + host=self.host, port=self.port, password=self.password, timeout=3 ) as client: if self.directory: client.set_record_directory(self.directory) diff --git a/src/simple_recorder/gui.py b/src/simple_recorder/gui.py index 85e3dcd..b4d4114 100644 --- a/src/simple_recorder/gui.py +++ b/src/simple_recorder/gui.py @@ -31,6 +31,7 @@ class SimpleRecorderWindow(fsg.Window): current_directory = resp.record_directory except (ConnectionRefusedError, TimeoutError): status_message = "Failed to connect to OBS. Is it running?" + current_directory = "" recorder_layout = [ [fsg.Text("Enter recording filename:", key="-PROMPT-")],