update video editor
This commit is contained in:
parent
ed37cd6924
commit
84cdd2ebf5
13 changed files with 155 additions and 44 deletions
|
|
@ -118,7 +118,6 @@ class Annotation(models.Model):
|
|||
}
|
||||
for key in ('id', 'in', 'out', 'value', 'created', 'modified'):
|
||||
j[key] = getattr(self, {
|
||||
'duration': 'clip__duration',
|
||||
'hue': 'clip__hue',
|
||||
'id': 'public_id',
|
||||
'in': 'start',
|
||||
|
|
@ -127,6 +126,7 @@ class Annotation(models.Model):
|
|||
'saturation': 'clip__saturation',
|
||||
'volume': 'clip__volume',
|
||||
}.get(key, key))
|
||||
j['duration'] = j['out'] - j['in']
|
||||
|
||||
l = self.get_layer()
|
||||
if l['type'] == 'place':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue