fix streams for static edits

This commit is contained in:
j 2016-08-23 13:19:48 +02:00
parent b4074303ba
commit 9685c7e4a5

View file

@ -493,6 +493,7 @@ class Clip(models.Model):
data['duration'] = data['out'] - data['in'] 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['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['layers'] = self.get_layers(user)
data['streams'] = [s.file.oshash for s in self.item.streams()]
return data return data
def get_annotations(self): def get_annotations(self):