diff --git a/OBSActionBase.py b/OBSActionBase.py index b836717..2d04f10 100644 --- a/OBSActionBase.py +++ b/OBSActionBase.py @@ -64,7 +64,7 @@ class OBSActionBase(ActionBase): def reconnect_obs(self): print("reconnecing obs") - self.PLUGIN_BASE.obs.connect_to(host=self.PLUGIN_BASE.get_settings()["ip"], port=self.PLUGIN_BASE.get_settings()["port"], password=self.PLUGIN_BASE.get_settings()["password"], timeout=3, legacy=False) + self.PLUGIN_BASE.backend.connect_to(host=self.PLUGIN_BASE.get_settings()["ip"], port=self.PLUGIN_BASE.get_settings()["port"], password=self.PLUGIN_BASE.get_settings()["password"], timeout=3, legacy=False) if self.PLUGIN_BASE.backend.get_connected(): self.status_label.set_label("Successfully connected to OBS") diff --git a/backend/backend.py b/backend/backend.py index 48559c4..d6f3e6d 100644 --- a/backend/backend.py +++ b/backend/backend.py @@ -42,8 +42,11 @@ class Backend(BackendBase): def toggle_record_pause(self): self.OBSController.toggle_record_pause() - + def connect_to(self, *args, **kwargs): + self.OBSController.connect_to(*args, **kwargs) + +print("init backend") backend = Backend()