Add auth fallbacks

This commit is contained in:
Core447 2024-07-03 17:24:32 +02:00
parent 2863d84e8f
commit 62ed7318a6
No known key found for this signature in database
GPG Key ID: 5B97C0BD62F98516
2 changed files with 6 additions and 6 deletions

View File

@ -76,9 +76,9 @@ class OBSActionBase(ActionBase):
def _reconnect_obs(self): def _reconnect_obs(self):
try: try:
self.plugin_base.backend.connect_to( self.plugin_base.backend.connect_to(
host=self.plugin_base.get_settings().get("ip"), host=self.plugin_base.get_settings().get("ip", "localhost"),
port=self.plugin_base.get_settings().get("port"), port=self.plugin_base.get_settings().get("port", 4455),
password=self.plugin_base.get_settings().get("password"), password=self.plugin_base.get_settings().get("password") or "",
timeout=3, legacy=False) timeout=3, legacy=False)
except Exception as e: except Exception as e:
log.error(e) log.error(e)

View File

@ -10,9 +10,9 @@ class Backend(BackendBase):
super().__init__() super().__init__()
self.OBSController = OBSController() self.OBSController = OBSController()
self.OBSController.connect_to( self.OBSController.connect_to(
host=self.frontend.get_settings().get("ip"), host=self.frontend.get_settings().get("ip", "localhost"),
port=self.frontend.get_settings().get("port"), port=self.frontend.get_settings().get("port", 4455),
password=self.frontend.get_settings().get("password") password=self.frontend.get_settings().get("password") or ""
) )
""" """