only offer existing posterframes
This commit is contained in:
parent
9153c80844
commit
bb2cc3ff16
1 changed files with 8 additions and 6 deletions
|
@ -1225,9 +1225,11 @@ class Item(models.Model):
|
|||
width, height = self.json['resolution']
|
||||
pos = self.sort.duration / 2
|
||||
for p in map(int, [pos/2, pos, pos+pos/2]):
|
||||
path = self.frame(p, height)
|
||||
if path:
|
||||
frames.append({
|
||||
'position': p,
|
||||
'path': self.frame(p, height),
|
||||
'path': path,
|
||||
'width': width,
|
||||
'height': height,
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue