.ogg can be video too

This commit is contained in:
j 2022-02-19 13:51:25 +01:00
parent 86de7f6269
commit d191f24d03
1 changed files with 2 additions and 0 deletions

View File

@ -181,6 +181,8 @@ class File(models.Model):
for type in ox.movie.EXTENSIONS:
if data['extension'] in ox.movie.EXTENSIONS[type]:
data['type'] = type
if data['extension'] == 'ogg' and self.info.get('video'):
data['type'] = 'video'
if data['type'] == 'unknown':
if self.info.get('video'):
data['type'] = 'video'