]> git.parisson.com Git - teleforma.git/commitdiff
Use settings.TELECASTER_LIVE_STREAMING_PORT by default
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Wed, 25 Jul 2018 06:30:33 +0000 (08:30 +0200)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Wed, 25 Jul 2018 06:30:33 +0000 (08:30 +0200)
teleforma/views/core.py

index a7cd04fdb053d412e5443922b7cb1125dda6ba90..8e539af42830f7a847f6dc8d1c2750118ed84869 100644 (file)
@@ -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]