get poster frame
This commit is contained in:
parent
91610be8fc
commit
8d5f8d5156
1 changed files with 3 additions and 6 deletions
|
@ -1228,12 +1228,9 @@ class Item(models.Model):
|
||||||
path = frames[int(self.poster_frame)]['path']
|
path = frames[int(self.poster_frame)]['path']
|
||||||
elif frames:
|
elif frames:
|
||||||
path = frames[int(len(frames)/2)]['path']
|
path = frames[int(len(frames)/2)]['path']
|
||||||
else:
|
else:
|
||||||
size = settings.CONFIG['video']['resolutions'][0]
|
size = settings.CONFIG['video']['resolutions'][0]
|
||||||
path = self.frame(self.poster_frame, size)
|
path = self.frame(self.poster_frame, size)
|
||||||
else:
|
|
||||||
size = settings.CONFIG['video']['resolutions'][0]
|
|
||||||
path = self.frame(self.poster_frame, size)
|
|
||||||
return path
|
return path
|
||||||
|
|
||||||
def make_icon(self):
|
def make_icon(self):
|
||||||
|
|
Loading…
Reference in a new issue