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