ignore text files
This commit is contained in:
parent
25513b7a12
commit
29395aeeff
3 changed files with 11 additions and 3 deletions
|
|
@ -97,8 +97,11 @@ class File(models.Model):
|
|||
self.is_audio = False
|
||||
if self.path.endswith('.jpg') or \
|
||||
self.path.endswith('.png') or \
|
||||
self.path.endswith('.txt') or \
|
||||
self.video_codec == 'ansi' or \
|
||||
self.duration == 0.04:
|
||||
self.is_video = False
|
||||
self.video_codec = ''
|
||||
else:
|
||||
self.is_video = False
|
||||
self.display_aspect_ratio = "4:3"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue