get poster frame

This commit is contained in:
j 2013-02-28 20:47:02 +00:00
parent 91610be8fc
commit 8d5f8d5156

View file

@ -1228,12 +1228,9 @@ class Item(models.Model):
path = frames[int(self.poster_frame)]['path']
elif frames:
path = frames[int(len(frames)/2)]['path']
else:
size = settings.CONFIG['video']['resolutions'][0]
path = self.frame(self.poster_frame, size)
else:
size = settings.CONFIG['video']['resolutions'][0]
path = self.frame(self.poster_frame, size)
else:
size = settings.CONFIG['video']['resolutions'][0]
path = self.frame(self.poster_frame, size)
return path
def make_icon(self):