]> 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, 22 Aug 2018 20:10:11 +0000 (22:10 +0200)
teleforma/views/core.py

index a0e1575226fdcf74f9d0198b0f5ebef2d64fbdde..9eab21f65d61328735002740211ce9c7d729aa1c 100644 (file)
@@ -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]