dont try to extract frames from audio

This commit is contained in:
j 2014-11-14 14:05:45 +00:00
parent 5413e8d8b7
commit a56428620a

View file

@ -1394,6 +1394,7 @@ class Item(models.Model):
else:
if 'videoRatio' in self.json and self.sort.duration:
width, height = self.json['resolution']
if width and height:
pos = self.sort.duration / 2
for p in map(int, [pos/2, pos, pos+pos/2]):
path = self.frame(p, height)