images are not video
This commit is contained in:
parent
02f787d062
commit
4c1619a4a1
1 changed files with 2 additions and 0 deletions
|
@ -96,6 +96,8 @@ class File(models.Model):
|
||||||
self.display_aspect_ratio = "%s:%s" % (self.width, self.height)
|
self.display_aspect_ratio = "%s:%s" % (self.width, self.height)
|
||||||
self.is_video = True
|
self.is_video = True
|
||||||
self.is_audio = False
|
self.is_audio = False
|
||||||
|
if self.name.endswith('.jpg') or self.name.endswith('.png') or self.duration == 0.04:
|
||||||
|
self.is_video = False
|
||||||
else:
|
else:
|
||||||
self.is_video = False
|
self.is_video = False
|
||||||
if 'audio' in self.info and self.info['audio']:
|
if 'audio' in self.info and self.info['audio']:
|
||||||
|
|
Loading…
Reference in a new issue