use previewRatio as aspect ratio for audio files

This commit is contained in:
j 2013-12-30 15:30:59 +05:30
parent 886794e4a3
commit 2abf8836bc

View file

@ -634,7 +634,7 @@ class Stream(models.Model):
else:
self.aspect_ratio = self.info['video'][0]['width'] / self.info['video'][0]['height']
else:
self.aspect_ratio = 128/80
self.aspect_ratio = settings.CONFIG['video']['previewRatio']
super(Stream, self).save(*args, **kwargs)
if self.available and not self.file.available:
self.file.save()