From 45d7bb3ea30161b0c4a54f9f58037110abaa6051 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Fri, 14 Sep 2012 00:15:08 +0200 Subject: [PATCH] only videos have resolution --- 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 a4fae296..e38dd3e9 100644 --- a/pandora/archive/models.py +++ b/pandora/archive/models.py @@ -247,7 +247,7 @@ class File(models.Model): def json(self, keys=None, user=None): resolution = (self.width, self.height) - if resolution == (0, 0): + if resolution == (0, 0) or self.type != 'video': resolution = None duration = self.duration if self.type != 'video':