forked from 0x2620/pandora
use max resolutions not first
This commit is contained in:
parent
ffc7b693a7
commit
b9a01b2db9
3 changed files with 3 additions and 3 deletions
|
|
@ -1232,7 +1232,7 @@ class Item(models.Model):
|
|||
elif frames:
|
||||
path = frames[int(len(frames)/2)]['path']
|
||||
else:
|
||||
size = settings.CONFIG['video']['resolutions'][0]
|
||||
size = max(settings.CONFIG['video']['resolutions'])
|
||||
path = self.frame(self.poster_frame, size)
|
||||
|
||||
return path
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue