Add auth fallbacks
This commit is contained in:
parent
2863d84e8f
commit
62ed7318a6
|
@ -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)
|
||||||
|
|
|
@ -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 ""
|
||||||
)
|
)
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue