From c9fa0c78cd6c53fab1c56409ae72507203abcd0e Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Thu, 20 Nov 2014 18:30:12 +0000 Subject: [PATCH] add missing imports --- pandora/edit/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pandora/edit/models.py b/pandora/edit/models.py index 09343516..f68f33c1 100644 --- a/pandora/edit/models.py +++ b/pandora/edit/models.py @@ -8,6 +8,7 @@ import shutil from glob import glob import subprocess from urllib import quote +import tempfile import ox from ox.django.fields import DictField, TupleField @@ -355,6 +356,7 @@ class Edit(models.Model): for clip in self.clips.all().order_by('index'): data = clip.json() clips.append(os.path.join(tmp, '%06d.webm' % data['index'])) + path = clip.item.streams()[0].media.path cmd = ['avconv', '-i', path, '-ss', data['in'], '-t', data['out'], '-vcodec', 'copy', '-acodec', 'copy',