use max resolutions not first

This commit is contained in:
j 2013-03-04 15:39:08 +00:00
commit b9a01b2db9
3 changed files with 3 additions and 3 deletions

View file

@ -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())