mirror of
https://github.com/onyx-and-iris/obsws-python.git
synced 2024-11-22 12:50:53 +00:00
add defaultkwarg into eventclient
This commit is contained in:
parent
b1c281e8a1
commit
95b1cb27da
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user