add flv
This commit is contained in:
parent
0ea397cac5
commit
2f914f16d6
1 changed files with 1 additions and 1 deletions
|
@ -126,7 +126,7 @@ class File(models.Model):
|
|||
self.pixels = int(self.width * self.height * float(utils.parse_decimal(self.framerate)) * self.duration)
|
||||
|
||||
else:
|
||||
self.is_video = os.path.splitext(self.path)[-1].lower() in ('.avi', '.mkv', '.dv', '.ogv', '.mpeg', '.mov', '.webm', '.mp4', '.mpg', '.wmv', '.mts')
|
||||
self.is_video = os.path.splitext(self.path)[-1].lower() in ('.avi', '.mkv', '.dv', '.ogv', '.mpeg', '.mov', '.webm', '.mp4', '.mpg', '.wmv', '.mts', '.flv')
|
||||
self.is_audio = os.path.splitext(self.path)[-1].lower() in ('.mp3', '.wav', '.ogg', '.flac', '.oga', '.wma')
|
||||
self.is_subtitle = os.path.splitext(self.path)[-1].lower() in ('.srt', )
|
||||
|
||||
|
|
Loading…
Reference in a new issue