Fixes re: zognia's testing #2

Merged
skeh merged 11 commits from feat/zogpog into main 2025-01-24 08:28:14 +00:00
Showing only changes of commit dfc87bb36f - Show all commits

View file

@ -10,11 +10,11 @@ class OBSWSPlugin(PluginBase):
self.uri = uri
self.obsws = simpleobsws.WebSocketClient(url=uri, password=password)
await self.obsws.connect()
success = await self.obsws.wait_until_identified()
if not success:
await self.obsws.disconnect()
raise RuntimeError(f'Could not connect to OBS websocket at {self.uri}')
await self.obsws.connect()
success = await self.obsws.wait_until_identified()
if not success:
await self.obsws.disconnect()
raise RuntimeError(f'Could not connect to OBS websocket at {self.uri}')
async def run(self, type, _children=None, _ctx={}, **kwargs):
req = simpleobsws.Request(type, requestData=kwargs)