From 92f642cbac1a0bff4fdc44c65b88906b83eb107b Mon Sep 17 00:00:00 2001 From: j Date: Sun, 26 Jun 2016 14:41:58 +0200 Subject: [PATCH] pcm sound can have no codec --- 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 10447705..78a95f7f 100644 --- a/pandora/archive/models.py +++ b/pandora/archive/models.py @@ -128,7 +128,7 @@ class File(models.Model): self.height = 0 if 'audio' in self.info and self.info['audio'] and self.duration > 0: audio = self.info['audio'][0] - self.audio_codec = audio['codec'] + self.audio_codec = audio.get('codec', '') self.samplerate = audio.get('samplerate', 0) self.channels = audio.get('channels', 0)