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: 2.8.1-ae~98^2~2 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=9072df024e03c93a317fe159f574cde443cafe48;p=teleforma.git Use settings.TELECASTER_LIVE_STREAMING_PORT by default --- 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]