only offer existing posterframes
This commit is contained in:
parent
9153c80844
commit
bb2cc3ff16
1 changed files with 8 additions and 6 deletions
|
@ -1225,12 +1225,14 @@ class Item(models.Model):
|
||||||
width, height = self.json['resolution']
|
width, height = self.json['resolution']
|
||||||
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]):
|
||||||
frames.append({
|
path = self.frame(p, height)
|
||||||
'position': p,
|
if path:
|
||||||
'path': self.frame(p, height),
|
frames.append({
|
||||||
'width': width,
|
'position': p,
|
||||||
'height': height,
|
'path': path,
|
||||||
})
|
'width': width,
|
||||||
|
'height': height,
|
||||||
|
})
|
||||||
return frames
|
return frames
|
||||||
|
|
||||||
def select_frame(self):
|
def select_frame(self):
|
||||||
|
|
Loading…
Reference in a new issue