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

Basic steps to add functionality for protected streams

parent c08b153f
Branches
No related tags found
No related merge requests found
......@@ -43,6 +43,7 @@ app.logger.info("{} is ready to take requests: {}".format(APPLICATION_NAME, HOST
# Create a streamlist
streamlist = StreamList(app.logger).set_max_streams(config["application"]["max_streams"])\
.set_password_protection_period(config["application"]["password_protection_period"])
.add_from_config(config["stream"])
......
......@@ -318,6 +318,14 @@ class StreamList():
return self.deactivate_matching_stream(existing_stream)
def add_from_config(self, config) -> 'Streamlist':
for stream in config["stream"]["key"]:
self.logger.info("Predefined stream: {}".format(stream))
return self
def jsonconverter(o):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment