.ogg can be video too

This commit is contained in:
j 2022-02-19 13:51:25 +01:00
parent 86de7f6269
commit d191f24d03

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'