From 95b1cb27da90b266b907aeac0f3110bb11ee963b Mon Sep 17 00:00:00 2001 From: onyx-and-iris <75868496+onyx-and-iris@users.noreply.github.com> Date: Wed, 27 Jul 2022 19:49:37 +0100 Subject: [PATCH] add defaultkwarg into eventclient --- obsstudio_sdk/events.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/obsstudio_sdk/events.py b/obsstudio_sdk/events.py index c38adec..9379891 100644 --- a/obsstudio_sdk/events.py +++ b/obsstudio_sdk/events.py @@ -23,7 +23,8 @@ class EventClient(object): DELAY = 0.001 def __init__(self, **kwargs): - kwargs["subs"] = ( + defaultkwargs = dict() + defaultkwargs["subs"] = ( (1 << Subs.general) | (1 << Subs.config) | (1 << Subs.scenes) @@ -36,6 +37,7 @@ class EventClient(object): | (1 << Subs.vendors) | (1 << Subs.ui) ) + kwargs = defaultkwargs | kwargs self.base_client = ObsClient(**kwargs) self.base_client.authenticate() self.callback = Callback()