From 9ef46a9d47ba9581c36e4096f7d5e8015ad82afe 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 a7cd04fd..8e539af4 100644 --- a/teleforma/views/core.py +++ b/teleforma/views/core.py @@ -718,9 +718,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