From: Guillaume Pellerin Date: Wed, 25 Jul 2018 06:30:33 +0000 (+0200) Subject: Use settings.TELECASTER_LIVE_STREAMING_PORT by default X-Git-Tag: 1.3.1~11 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=9ef46a9d47ba9581c36e4096f7d5e8015ad82afe;p=teleforma.git Use settings.TELECASTER_LIVE_STREAMING_PORT by default --- 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]