forked from 0x2620/pandora
add missing imports
This commit is contained in:
parent
40cc50723a
commit
c9fa0c78cd
1 changed files with 2 additions and 0 deletions
|
@ -8,6 +8,7 @@ import shutil
|
||||||
from glob import glob
|
from glob import glob
|
||||||
import subprocess
|
import subprocess
|
||||||
from urllib import quote
|
from urllib import quote
|
||||||
|
import tempfile
|
||||||
|
|
||||||
import ox
|
import ox
|
||||||
from ox.django.fields import DictField, TupleField
|
from ox.django.fields import DictField, TupleField
|
||||||
|
@ -355,6 +356,7 @@ class Edit(models.Model):
|
||||||
for clip in self.clips.all().order_by('index'):
|
for clip in self.clips.all().order_by('index'):
|
||||||
data = clip.json()
|
data = clip.json()
|
||||||
clips.append(os.path.join(tmp, '%06d.webm' % data['index']))
|
clips.append(os.path.join(tmp, '%06d.webm' % data['index']))
|
||||||
|
path = clip.item.streams()[0].media.path
|
||||||
cmd = ['avconv', '-i', path,
|
cmd = ['avconv', '-i', path,
|
||||||
'-ss', data['in'], '-t', data['out'],
|
'-ss', data['in'], '-t', data['out'],
|
||||||
'-vcodec', 'copy', '-acodec', 'copy',
|
'-vcodec', 'copy', '-acodec', 'copy',
|
||||||
|
|
Loading…
Reference in a new issue