forked from 0x2620/pandora
fix frames
This commit is contained in:
parent
2ed0c12004
commit
dcc335eef7
1 changed files with 3 additions and 3 deletions
|
@ -349,13 +349,13 @@ class Item(models.Model):
|
||||||
|
|
||||||
def get_frames(self):
|
def get_frames(self):
|
||||||
frames = []
|
frames = []
|
||||||
frames = self.poster_frames()
|
pframes = self.poster_frames()
|
||||||
if frames:
|
if pframes:
|
||||||
pos = self.poster_frame
|
pos = self.poster_frame
|
||||||
if pos < 0:
|
if pos < 0:
|
||||||
pos = 0
|
pos = 0
|
||||||
p = 0
|
p = 0
|
||||||
for f in frames:
|
for f in pframes:
|
||||||
frames.append({
|
frames.append({
|
||||||
'index': p,
|
'index': p,
|
||||||
'position': f['position'],
|
'position': f['position'],
|
||||||
|
|
Loading…
Reference in a new issue