From 9072df024e03c93a317fe159f574cde443cafe48 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Wed, 25 Jul 2018 08:30:33 +0200 Subject: [PATCH] Use settings.TELECASTER_LIVE_STREAMING_PORT by default --- teleforma/views/core.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/teleforma/views/core.py b/teleforma/views/core.py index a0e15752..9eab21f6 100644 --- a/teleforma/views/core.py +++ b/teleforma/views/core.py @@ -604,9 +604,8 @@ class ConferenceRecordView(FormView): conference.save() for stream in conf_dict['streams']: - host = stream['host'] - host = settings.TELECASTER_LIVE_STREAMING_SERVER - port = stream['port'] + host = getattr(settings, "TELECASTER_LIVE_STREAMING_SERVER", stream['host']) + port = getattr(settings, "TELECASTER_LIVE_STREAMING_PORT", stream['port']) server_type = stream['server_type'] stream_type = stream['stream_type'] #site = Site.objects.all()[0] -- 2.39.5