blob: d7400e8ade013c240234077cd7d27975d8f35f82 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
diff --git a/syng/client.py b/syng/client.py
index efe4c27..f471ec1 100644
--- a/syng/client.py
+++ b/syng/client.py
@@ -130,6 +130,8 @@ class State:
class Client:
def __init__(self, config: dict[str, Any]):
+ config["config"] = default_config() | config["config"]
+
self.is_running = False
self.sio = socketio.AsyncClient(json=jsonencoder)
self.loop: Optional[asyncio.AbstractEventLoop] = None
@@ -585,6 +587,9 @@ def run_client(args: Namespace) -> None:
if "config" not in config:
config["config"] = {}
+ if "sources" not in config:
+ config["sources"] = {"youtube": {"enabled": True}}
+
if args.room:
config["config"] |= {"room": args.room}
if args.secret:
|