From b3a8c01d4f5804125a8173be47bd89b0db223fd2 Mon Sep 17 00:00:00 2001 From: yomguy Date: Thu, 19 Jul 2012 00:50:47 +0200 Subject: [PATCH] rm room for record --- teleforma/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/teleforma/views.py b/teleforma/views.py index 340a22a6..a30e4431 100755 --- a/teleforma/views.py +++ b/teleforma/views.py @@ -400,13 +400,14 @@ class ConferenceRecordView(FormView): stream = LiveStream(conference=self.conference, server=server, stream_type=type, streaming=True) stream.save() + time.sleep(2) + if server_type == 'stream-m': self.snapshot(stream.snapshot_url, station.output_dir) return super(ConferenceRecordView, self).form_valid(form) def snapshot(self, url, dir): - print url img = urllib.urlopen(url) path = dir + os.sep + 'preview.webp' f = open(path, 'w') -- 2.39.5