forked from 0x2620/pandora
use previewRatio as aspect ratio for audio files
This commit is contained in:
parent
886794e4a3
commit
2abf8836bc
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue