From 2abf8836bc788f15c15fa5dabe93a61f066b73a5 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Mon, 30 Dec 2013 15:30:59 +0530 Subject: [PATCH] use previewRatio as aspect ratio for audio files --- pandora/archive/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora/archive/models.py b/pandora/archive/models.py index 9185d612..15fe3b2f 100644 --- a/pandora/archive/models.py +++ b/pandora/archive/models.py @@ -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()