use max resolutions not first
This commit is contained in:
parent
ffc7b693a7
commit
b9a01b2db9
3 changed files with 3 additions and 3 deletions
|
|
@ -250,7 +250,7 @@ class File(models.Model):
|
|||
config = settings.CONFIG['video']
|
||||
stream, created = Stream.objects.get_or_create(
|
||||
file=self,
|
||||
resolution=config['resolutions'][0],
|
||||
resolution=max(config['resolutions']),
|
||||
format=config['formats'][0])
|
||||
if created:
|
||||
stream.video.name = stream.path(stream.name())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue