include first annotation as annotation id for clips
This commit is contained in:
parent
180854c3c9
commit
083fabc208
1 changed files with 3 additions and 0 deletions
|
@ -98,6 +98,9 @@ class MetaClip:
|
|||
data['item'] = self.item.public_id
|
||||
data['in'] = self.start
|
||||
data['out'] = self.end
|
||||
qs = self.annotations.all()
|
||||
if qs.count():
|
||||
data['annotation'] = qs[0].public_id
|
||||
data['parts'] = self.item.json['parts']
|
||||
data['durations'] = self.item.json['durations']
|
||||
for key in ('title', 'director', 'year', 'videoRatio'):
|
||||
|
|
Loading…
Reference in a new issue