forked from 0x2620/pandora
dont try to extract frames from audio
This commit is contained in:
parent
5413e8d8b7
commit
a56428620a
1 changed files with 11 additions and 10 deletions
|
@ -1394,6 +1394,7 @@ class Item(models.Model):
|
||||||
else:
|
else:
|
||||||
if 'videoRatio' in self.json and self.sort.duration:
|
if 'videoRatio' in self.json and self.sort.duration:
|
||||||
width, height = self.json['resolution']
|
width, height = self.json['resolution']
|
||||||
|
if width and height:
|
||||||
pos = self.sort.duration / 2
|
pos = self.sort.duration / 2
|
||||||
for p in map(int, [pos/2, pos, pos+pos/2]):
|
for p in map(int, [pos/2, pos, pos+pos/2]):
|
||||||
path = self.frame(p, height)
|
path = self.frame(p, height)
|
||||||
|
|
Loading…
Reference in a new issue