fix streams for static edits
This commit is contained in:
parent
b4074303ba
commit
9685c7e4a5
1 changed files with 2 additions and 1 deletions
|
@ -393,7 +393,7 @@ class Edit(models.Model):
|
||||||
return response
|
return response
|
||||||
|
|
||||||
def render(self):
|
def render(self):
|
||||||
#creating a new file from clips
|
# creating a new file from clips
|
||||||
tmp = tempfile.mkdtemp()
|
tmp = tempfile.mkdtemp()
|
||||||
clips = []
|
clips = []
|
||||||
for clip in self.clips.all().order_by('index'):
|
for clip in self.clips.all().order_by('index'):
|
||||||
|
@ -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):
|
||||||
|
|
Loading…
Reference in a new issue