add some more metadata to clips
This commit is contained in:
parent
30548547b8
commit
46da738b26
1 changed files with 4 additions and 0 deletions
|
@ -349,6 +349,10 @@ class Clip(models.Model):
|
|||
data['out'] = self.end
|
||||
data['parts'] = self.item.json['parts']
|
||||
data['durations'] = self.item.json['durations']
|
||||
for key in ('title', 'director', 'year', 'videoRatio'):
|
||||
value = self.item.json.get(key)
|
||||
if value:
|
||||
data[key] = value
|
||||
data['duration'] = data['out'] - data['in']
|
||||
return data
|
||||
|
||||
|
|
Loading…
Reference in a new issue