.ogg can be video too
This commit is contained in:
parent
86de7f6269
commit
d191f24d03
1 changed files with 2 additions and 0 deletions
|
@ -181,6 +181,8 @@ class File(models.Model):
|
||||||
for type in ox.movie.EXTENSIONS:
|
for type in ox.movie.EXTENSIONS:
|
||||||
if data['extension'] in ox.movie.EXTENSIONS[type]:
|
if data['extension'] in ox.movie.EXTENSIONS[type]:
|
||||||
data['type'] = type
|
data['type'] = type
|
||||||
|
if data['extension'] == 'ogg' and self.info.get('video'):
|
||||||
|
data['type'] = 'video'
|
||||||
if data['type'] == 'unknown':
|
if data['type'] == 'unknown':
|
||||||
if self.info.get('video'):
|
if self.info.get('video'):
|
||||||
data['type'] = 'video'
|
data['type'] = 'video'
|
||||||
|
|
Loading…
Reference in a new issue