From 46da738b266e72f74e86a8cf3744f8ab7a1b285d Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Mon, 15 Jul 2013 11:44:05 +0000 Subject: [PATCH] add some more metadata to clips --- pandora/edit/models.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pandora/edit/models.py b/pandora/edit/models.py index 5f6feaf2..e194da9e 100644 --- a/pandora/edit/models.py +++ b/pandora/edit/models.py @@ -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