Skip to content
Snippets Groups Projects
Commit a144e082 authored by David Huss's avatar David Huss :speech_balloon:
Browse files

Basic implementation of protected streams

parent 27c32efa
Branches
No related tags found
No related merge requests found
......@@ -58,10 +58,10 @@ free_choice = true
# each stream.key has to have a name, and can have a password and description,
# if you set the unlisted option to true it will not show up in the list
[[stream]]
[[stream.key]]
name = "foo"
[[stream]]
[[stream.key]]
name = "private-a688db56-d1e2-4a32-9ab7-5400f5371a60"
password = "1234"
unlisted = true
......
......@@ -387,7 +387,7 @@ class StreamList():
Adds all streams from the config as protected/deactivated streams
This is a mechanism to permanently "reserve" certain stream keys
"""
for stream in config["stream"]:
for stream in config["stream"]["key"]:
assert(type(stream), dict)
self.logger.debug("Stream of type \"{}\" was {}".format(type(stream), stream))
# Parse the values from the configs
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment