]> git.parisson.com Git - teleforma.git/commitdiff
fix host to site
authoryomguy <yomguy@parisson.com>
Tue, 24 Jul 2012 23:04:55 +0000 (01:04 +0200)
committeryomguy <yomguy@parisson.com>
Tue, 24 Jul 2012 23:04:55 +0000 (01:04 +0200)
teleforma/views.py

index 143919be23e86c9a897afa5f78134669f184e7e6..2e6b4c1d18439b487c6bf58a7c6bfbde6f5e9bba 100755 (executable)
@@ -459,7 +459,8 @@ class ConferenceRecordView(FormView):
                     host = stream['host']
                     port = stream['port']
                     server_type = stream['type']
-                    server, c = StreamingServer.objects.get_or_create(host=settings.TELECASTER_MASTER_SERVER,
+                    site = Site.objects.all()
+                    server, c = StreamingServer.objects.get_or_create(host=site[0],
                                                                       port=port,
                                                                       type=server_type)
                     stream = LiveStream(conference=conf, server=server,