From 62ed7318a6671819c8cb5acd81c39b7ce1f6b364 Mon Sep 17 00:00:00 2001 From: Core447 <100139110+Core447@users.noreply.github.com> Date: Wed, 3 Jul 2024 17:24:32 +0200 Subject: [PATCH] Add auth fallbacks --- OBSActionBase.py | 6 +++--- backend/backend.py | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/OBSActionBase.py b/OBSActionBase.py index 0f414f3..470b3bf 100644 --- a/OBSActionBase.py +++ b/OBSActionBase.py @@ -76,9 +76,9 @@ class OBSActionBase(ActionBase): def _reconnect_obs(self): try: self.plugin_base.backend.connect_to( - host=self.plugin_base.get_settings().get("ip"), - port=self.plugin_base.get_settings().get("port"), - password=self.plugin_base.get_settings().get("password"), + host=self.plugin_base.get_settings().get("ip", "localhost"), + port=self.plugin_base.get_settings().get("port", 4455), + password=self.plugin_base.get_settings().get("password") or "", timeout=3, legacy=False) except Exception as e: log.error(e) diff --git a/backend/backend.py b/backend/backend.py index 1387127..06d61ab 100644 --- a/backend/backend.py +++ b/backend/backend.py @@ -10,9 +10,9 @@ class Backend(BackendBase): super().__init__() self.OBSController = OBSController() self.OBSController.connect_to( - host=self.frontend.get_settings().get("ip"), - port=self.frontend.get_settings().get("port"), - password=self.frontend.get_settings().get("password") + host=self.frontend.get_settings().get("ip", "localhost"), + port=self.frontend.get_settings().get("port", 4455), + password=self.frontend.get_settings().get("password") or "" ) """