From 4c1619a4a167c0f40e4cf4b2f7a91207e4da8508 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Mon, 27 Dec 2010 10:37:15 +0530 Subject: [PATCH] images are not video --- pandora/archive/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pandora/archive/models.py b/pandora/archive/models.py index f4206eb9..dc0fc732 100644 --- a/pandora/archive/models.py +++ b/pandora/archive/models.py @@ -96,6 +96,8 @@ class File(models.Model): self.display_aspect_ratio = "%s:%s" % (self.width, self.height) self.is_video = True self.is_audio = False + if self.name.endswith('.jpg') or self.name.endswith('.png') or self.duration == 0.04: + self.is_video = False else: self.is_video = False if 'audio' in self.info and self.info['audio']: