Fix: Unable to reconnect to obs

This commit is contained in:
Core447 2024-01-14 13:55:40 +01:00
parent 0b719a4352
commit 5898fae1e9
No known key found for this signature in database
GPG Key ID: 5B97C0BD62F98516
2 changed files with 5 additions and 2 deletions

View File

@ -64,7 +64,7 @@ class OBSActionBase(ActionBase):
def reconnect_obs(self): def reconnect_obs(self):
print("reconnecing obs") 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(): if self.PLUGIN_BASE.backend.get_connected():
self.status_label.set_label("Successfully connected to OBS") self.status_label.set_label("Successfully connected to OBS")

View File

@ -43,7 +43,10 @@ class Backend(BackendBase):
def toggle_record_pause(self): def toggle_record_pause(self):
self.OBSController.toggle_record_pause() self.OBSController.toggle_record_pause()
def connect_to(self, *args, **kwargs):
self.OBSController.connect_to(*args, **kwargs)
print("init backend")
backend = Backend() backend = Backend()