From: yomguy Date: Tue, 24 Jul 2012 23:01:31 +0000 (+0200) Subject: fix wrong host X-Git-Tag: 0.8^2~16 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=7da6080b623f7158367eb45392ac2a9c22d2f16c;p=teleforma.git fix wrong host --- diff --git a/teleforma/views.py b/teleforma/views.py index 430cc24a..143919be 100755 --- a/teleforma/views.py +++ b/teleforma/views.py @@ -417,10 +417,10 @@ class ConferenceRecordView(FormView): # self.snapshot(stream.snapshot_url, station.output_dir) self.snapshot('http://localhost:8080/snapshot/safe', station.output_dir) - try: - self.push(self.conference) - except: - pass + try: + self.push(self.conference) + except: + pass return super(ConferenceRecordView, self).form_valid(form) @@ -459,7 +459,7 @@ class ConferenceRecordView(FormView): host = stream['host'] port = stream['port'] server_type = stream['type'] - server, c = StreamingServer.objects.get_or_create(host=host, + server, c = StreamingServer.objects.get_or_create(host=settings.TELECASTER_MASTER_SERVER, port=port, type=server_type) stream = LiveStream(conference=conf, server=server,