From 9685c7e4a5805d2c46d3eb0e95976ba1de493b4a Mon Sep 17 00:00:00 2001 From: j Date: Tue, 23 Aug 2016 13:19:48 +0200 Subject: [PATCH] fix streams for static edits --- pandora/edit/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pandora/edit/models.py b/pandora/edit/models.py index 581f88ac..40664214 100644 --- a/pandora/edit/models.py +++ b/pandora/edit/models.py @@ -393,7 +393,7 @@ class Edit(models.Model): return response def render(self): - #creating a new file from clips + # creating a new file from clips tmp = tempfile.mkdtemp() clips = [] for clip in self.clips.all().order_by('index'): @@ -493,6 +493,7 @@ class Clip(models.Model): data['duration'] = data['out'] - data['in'] data['cuts'] = tuple([c for c in self.item.get('cuts', []) if c > self.start and c < self.end]) data['layers'] = self.get_layers(user) + data['streams'] = [s.file.oshash for s in self.item.streams()] return data def get_annotations(self):